• Not Answered

Rotate an object or bitmap preserving dimensions?

Maybe I'm missing something obvious, because it seems like I have done this . . . but when I animate the "rotation" of a line or a group, the scaling of the object changes as it rotates.

If I draw a vertical line and rotate it 90 degrees, it shrinks. Another 90 and it's the original size. 45 degrees is not 45 degrees, it's more like 30. 60 degrees of rotation looks like 45.

I suppose I have seen this behavior when I rotate a graphic (like a triangle).

My aim is to make a more-or-less continuous indication of wind direction, imitating a compass. Any thoughts?

Thanks,

John

2 Replies

  • John,

    I conducted an experiment in DeltaV Operate Configure with a line segment and a circle with the same radius as the length of the line segment.  When I rotated the line segment, the length of the segment didn't change.  I used 30/60 rotations and they look orthogonal.

    If you are seeing distortions in the runtime Operate environment, then the document height/width aspect ratio of the GRF file might not be the same height/width aspect ratio of the main graphic window you specified in your layout file.  If the aspect ratios are different, then DeltaV at runtime will scale the horizontal and vertical components of graphical elements at a different rate.  This is sometimes most noticeable in warped fonts on text.

  • In reply to Ben Bishop:

    Indeed, when I use the "Main 1680" template, there is no distortion. We were seeing the distortion on a old graphic developed for 4:3 aspect ratio. Any workaround other than to recreate the graphic in the "Main 1680" aspect ratio? Thanks for the analysis.