GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / CreateGdPictureImageFromIStream Method / CreateGdPictureImageFromIStream(IStream) Method
An IStream object storing the image data.





In This Topic
CreateGdPictureImageFromIStream(IStream) Method
In This Topic
Creates a new GdPicture image from an image stored into an IStream Object.
Syntax
'Declaration
 
Public Overloads Function CreateGdPictureImageFromIStream( _
   ByVal Stream As IStream _
) As Integer
public int CreateGdPictureImageFromIStream( 
   IStream Stream
)
public function CreateGdPictureImageFromIStream( 
    Stream: IStream
): Integer; 
public function CreateGdPictureImageFromIStream( 
   Stream : IStream
) : int;
public: int CreateGdPictureImageFromIStream( 
   IStream* Stream
) 
public:
int CreateGdPictureImageFromIStream( 
   IStream^ Stream
) 

Parameters

Stream
An IStream object storing the image data.

Return Value

0: The image could not be created. Use the GetStat() method to determine the reason this method failed. Non-zero: GdPicture image identifier. The created image. The ReleaseGdPictureImage() method must be subsequently used to release the image from the memory.
Remarks

Supported formats are listed here: http://www.gdpicture.com/solutions/supported-formats/.

Notes for multipage images (TIFF and GIF): By default, the class loads multipage images (GIF and TIFF) in read & write mode. To open multipage images in read-only mode call the TiffOpenMultiPageForWrite() method specifying False for tiff images or the GifOpenMultiFrameForWrite() method for gif images.

See Also