|
|
|
|
<Image variable>.SaveJPEG (Function) In french: <Variable Image>.SauveJPEG Saves an image contained in a variable of type Image: - in a JPEG file.
- in memory.
Remarks: - This function can only be used to save the images for screen resolutions up to 32 bits.
Saving images in JPEG format is supported only if the application is run by the Java Virtual Machine (JVM) distributed by SUN. Images in JPEG format cannot be saved with other Java virtual machines.
MyImage is Image = "Test.gif" // Saves the image contained in MyImage in memory ResSave = MyImage.SaveJPEG(inMemory)
Syntax
Saving an image in memory Hide the details
<Result> = <Image name>.SaveJPEG(<inMemory> [, <Quality>])
<Result>: Buffer Byte string containing the image in JPEG format. Then this byte string can be assigned to an Image control, saved in a file (fSaveText), sent via a network (with the Socket functions), ... <Image name>: Image variable Name of the Image variable to be used. <inMemory>: Constant inMemory: Constant used to save an image in memory. <Quality>: Optional integer Quality of the image saved. Value between 1 and 100 (80 by default). Lower image quality translates into higher image compression rate and smaller file size.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|