SaveAsStream Method

See Also     Examples     Applies To

Saves the native 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. Stream object. (Can be Istream or IUnknown) The stream object to store the native 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

GdTwainStatus

Remarks

The GdTwainStatus constants are defined HERE

Category

Saving, Export and Close Image





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.