P
Peter Oliphant
I'm working with Graphics transforms (i.e., RotateTranform,
TranslateTransform and ScaleTransform ). Are these applied to the WORLD
(graphics container) before drawing into that world (graphics container)?
That is, if I apply a Rotation of 90 degrees clockwise then the old x-axis
is now the new y-axis and the old y-axis is now the new x-axis
(sign-reversed due to the fact that the y-axis of a screen increases the
lower on the display).
I ask because I couldn't figure out what the 'rotation point' for each
object I draw, then it occured to me I'm probably
rotating-translating-scaling the world instead. If I'm correct, doubling the
x-scale will HALVE the x-dimensions of the graphic objects being drawn. This
is in contrast to the scale transform being applied to the object itself,
which would result in it doubling the object in x-size...
Thus, if tranforms are applied to the world (graphics container), I should
apply the reverse operations I want to have as an affect of the object
(e.g., translate in the opposite direction, lower scale to increase object
size, rotate counterclockwise to rotate object clockwise, etc.)...
Have I got this right? : )
[==P==]
TranslateTransform and ScaleTransform ). Are these applied to the WORLD
(graphics container) before drawing into that world (graphics container)?
That is, if I apply a Rotation of 90 degrees clockwise then the old x-axis
is now the new y-axis and the old y-axis is now the new x-axis
(sign-reversed due to the fact that the y-axis of a screen increases the
lower on the display).
I ask because I couldn't figure out what the 'rotation point' for each
object I draw, then it occured to me I'm probably
rotating-translating-scaling the world instead. If I'm correct, doubling the
x-scale will HALVE the x-dimensions of the graphic objects being drawn. This
is in contrast to the scale transform being applied to the object itself,
which would result in it doubling the object in x-size...
Thus, if tranforms are applied to the world (graphics container), I should
apply the reverse operations I want to have as an affect of the object
(e.g., translate in the opposite direction, lower scale to increase object
size, rotate counterclockwise to rotate object clockwise, etc.)...
Have I got this right? : )
[==P==]