Method XbpBitmap():setBuffer() Foundation
Sets or returns the buffer containing the image data.
:setBuffer( [<cBuffer>], [<nFormat>|<cCodecUUID>], [<nCompression>] ) --> cOldBuffer
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 buffer |
XBPBMP_FORMAT_WIN3X | Windows 3.x bitmap buffer |
XBPBMP_FORMAT_OS21X | OS/2 1.x bitmap buffer |
XBPBMP_FORMAT_OS22X | OS/2 2.x bitmap buffer |
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 the data in the buffer of the XbpBitmap object before the method was called. If <nFormat> is specified, the return value is converted to the corresponding image format.
The :setBuffer() method retrieves or changes the data in the buffer of an XbpBitmap object. All graphic information of an image is stored in the buffer as a character string.
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.