See Also Examples Applies To
Saves the native GdPicture image into a one dimention bytes array.
Syntax
object.SaveAsByteArray (*arBytes(), *nBytesRead, sImageFormat, nEncoderParameter)
The SaveAsByteArray syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| *arBytes() | Required. Output 1D (0 based) Byte Array. Image file data. |
| *nBytesRead | Required. Output Long. The number of bytes writed into the arBytes() array. |
| sImageFormat | Required. String. Image format: "bmp" or "jpg" or "gif" or "png" or "tif". |
| nEncoderParameter |
Optional. Long. Default value is 0. Can be jpeg quality between 1 and 100 for "jpg" image format. Can be compression value for tif image: 6:None, 5:RLE, 4:CCITT4, 3:CCITT3, 2:LZW. |
Returns
Long. GdPictureStatus
Category
Export Image