On Sep 21, 2005, at 6:26 PM, Andrew Krebs wrote:
Sure thing. The size of the picture is smaller than the canvas, I am
sure of that. I'm testing this on Windows XP with 5.5.5.
Dim px As PixmapShape
Dim pic As Picture
const pi = 3.14159
pic = xmediumred
px = New PixmapShape(pic)
px.rotation = 45 * (pi/180)
Canvas1.Graphics.DrawRect 0,0,Canvas1.Width,Canvas1.Height
Canvas1.Graphics.DrawObject px,0,0
Canvas1.Graphics.DrawObject px,150,150
And to illustrate my point, a picture!
http://www.filefarmer.com/dimmensionx/forjoe.gif
I believe you are assuming the X and Y to be based on the upper left
coordinate; but a PixmapShape X and Y is based on the absolute center
of the shape.
So it is really not the rotation that is causing this issue (disable it
and see) but the placement when you write:
Canvas1.Graphics.DrawObject px,0,0
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|