>Hi Cesar, it's me again. Sorry but I can't seem to get thing to work yet. You said to save it 'after you've drawn in the image canvas'. I can't figure out how to get the draw to work in the form.imgCanvas. Do I load the file in the image imgCanvas container using
Picture = 'C:\MYFILE.PNG' or do I have to load it another way. Either way, how do I run the Draw? I tried using the draw method on the image canvas but I got an error saying Draw did not exist.
Here's a simple way to draw an image:
In the BeforeDraw event of the ImgCanvas, try:local loBmp as xfcBitmap
local loGfx as xfcGraphics
loGfx = This.oGfx
With _Screen.System.Drawing
loBmp = .Bitmap.FromFile(GETPICT())
loGfx.DrawImage(loBmp, 0,0)
loGfx.DrawRectangle(.Pens.Red, 10,10,20,20)
EndWith
Please have a look at this tutorial for a better explanation on how to use the Image Canvas object
http://weblogs.foxite.com/vfpimaging//archive/2007/03/20/3535.aspx
HTH
Cesar