05-07-2025, 07:23 PM
(05-07-2025, 06:46 PM)bplus Wrote: Doesn't inForm have an Image property for the Picture Box Control which is a handle you can use with the newish _SaveImage routine?
you can load an image file into a picturebox with a filename as per doumentation
Code: (Select All)
LoadImage Control(PictureBox), ImageFile$
or you can also do this with BeginDraw and EndDraw
Code: (Select All)
limage& = _LoadImage(Imagefile$)
BeginDraw PictureBox1
_PutImage (0, 0), limage&
EndDraw PictureBox1
but I haven't figure out how to save out a picturebox itself.
my problem is while this would add a circle to the picturebox
Code: (Select All)
BeginDraw PictureBox1
circle(30,30),12,_rgb32(100,100,200)
EndDraw PictureBox1
I have no clue how to save that out as an image file from the picturebox. If I could find an image handle in the inform code I could do it but I just haven't figured it out. (or if it has any for the picturebox itself).

