Method XbpBitmap():saveFile() Foundation
Saves a bitmap image in a file.
:saveFile( <cImageFilename>, [<nFormat>|<cCodecUUID>], [<nCompression>] ) --> lSuccess
Constant | Description |
---|---|
XBPBMP_FORMAT_GIF | Graphics Interchange Format |
XBPBMP_FORMAT_JPG | Joined Photographic Experts Group |
XBPBMP_FORMAT_PNG | Portable Network Graphics |
XBPBMP_FORMAT_BMP | Windows bitmap file |
XBPBMP_FORMAT_WIN2X | Windows 2.x bitmap file |
XBPBMP_FORMAT_WIN3X | Windows 3.x bitmap file |
XBPBMP_FORMAT_OS21X | OS/2 1.x bitmap file |
XBPBMP_FORMAT_OS22X | OS/2 2.x bitmap file |
XBPBMP_FORMAT_TIFF | Tagged Image File file |
XBPBMP_FORMAT_JPGXR | JPEG Extended Range file |
XBPBMP_FORMAT_DEFAULT *) | Constant is independent of the operating system. Equivalent to XBPBMP_FORMAT_WIN3X under Windows |
|
This method returns .T. (true) when the image could be saved, otherwise it returns .F. (false).
The :saveFile() method saves the image displayed by an XbpBitmap object in an image file. Note that the method does not overwrite existing files. If the file <cImageFilename> exists already, it must be deleted before calling :saveFile().
The parameter <nCompression> is only important for image file formats which support data compression. These are PNG and JPEG formats, the latter of which exposes a reduced image quality with an increased compression rate.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.