Image files can I save?

Dynamitedan2000

New Member
Licensed User
I am trying to develope a simple drawing tool, and I would like to save the image to the ppc.

Can this be done!?

Many thanks
 

klaus

Expert
Licensed User
You can also use the dzImage Library in

http://www.basic4ppc.com/forum/showthread.php?t=1403

Where you have different functions like, below part of the txt file for the library.

Methods:
ScreenCapture: Captures the whole screen.
ScreenCapture2(x,y,width,Height): Captures part of the screen.
ControlCapture(ControlName,x,y,width,Height): Captures part of a control. x,y are relatives to control upper left corner. The control can be a form or any other control
SaveImageBMP(Image, FileName): Saves the Image as BMP to a file with filename Filename.
SaveImageJPEG(Image, FileName): Saves the Image as JPG to a file with filename Filename.
SaveImageGIF(Image, FileName): Saves the Image as GIF to a file with filename Filename.
CopyImage(sourceImage, x,y,width, height): Copies a part of an image. Returns the new cropped Image (part of the source)
RotateImage(sourceImage, angle): Rotates an image. Angle can be one of 0, 90, 180, 270. Returns the rotated Image
ZoomImage(sourceImage, Percent): Zoomes an image Percent% of the original (Percent = 0 to 1000). Returns the Zoomed Image
ImageSize(Image): Returns an array(2) containing width and height of the image. array(0) = width and array(1) = height

The last version is V5, the text file is in version V2
I think the functions you are looking for are in this library.

Best regards
Klaus
Switzerland
 

Stanl3yCZ

Member
I am also working on something like painting, if you want we can do it together..
 
Top