Hello, I am trying to create some custom Blox but am unclear how to do create something with a fixed aspect ratio.
If I override GetBlockPath
and add lines (with APath.AddLine
) sized to make a square, sure enough the block looks like a square when added to the TTMSFNCBloxControl
. However, when I stretch the block, the square stretched into a rectangle.
The same is true if I add a circle with, say, APath.AddEllipse(0, 0, 100, 100)
.
What do I need to do in order to specify a shape that retains its aspect ratio when the block is resized. I want to make a square and a circle block, which can be made larger or smaller, with the block filling the boundary as best it can (i.e. using the shorter distance in the boundary to decide on edge size or diameter size).
Can you please advise?
Thanks