On Mar 23, 2006, at 8:36 PM, Dave Bert wrote:
Ok, I am using a 2D graphic and rotating it first in the canvas
(if that matters).
Then I have a method called DrawMyCanvas, g As Graphics, and with
g.DrawObject d,67,60 in the code window.
This matches up with my paint event of my canvas that has :
g.DrawObject d,67,60 in it. This serves as the rotaion point of the
image so it rotates in its center. In my Print buttons activate
event (among setup stuff) I have: DrawMyCanvas(g) and from there I
can't seem to control the placement of the image on the printout as
I can with text etc...
Make any sense?
Are you saying that you get the object to print but it doesn't print
where you expect it to appear? If that's the case, keep in mind that
when you do:
g.DrawObject d, 67, 60
that the 67, 60 represent offsets relative to d.X and d.Y. If you
have not set d.X and d.Y they default to 0. In that case, your shape
should print or display at canvas or page coordinates x = 67 and y =
60 as expected. But if you have set d.X and d.Y to say 50 and 100
respectively, for example, then your object will display at x = 117
and y = 160. This can be surprising until you get the hang of it.
Best,
Jack
_______________________________________________
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>