See Also Examples Applies To
Saves the native GdPicture image into a stream object.
Syntax
object.SaveAsStream (*oStream, sImageFormat, nEncoderParameter)
The SaveAsStream syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| *oStream | Required. Output Stream object. (Can be Istream or IUnknown) The stream object to store the native GdPicture image data. |
| 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
Visual Basic Sample
Store an image to a IStream object
Dim oStream As IStream
Dim nStat as Long
nStat = Object.SaveAsStream(oStream, "jpg")