'Declaration
Public Overloads Function CreateGdPictureImageFromIStream( _ ByVal Stream As IStream, _ ByVal DirectAccess As Boolean _ ) As Integer
public int CreateGdPictureImageFromIStream( IStream Stream, bool DirectAccess )
public function CreateGdPictureImageFromIStream( Stream: IStream; DirectAccess: Boolean ): Integer;
public function CreateGdPictureImageFromIStream( Stream : IStream, DirectAccess : boolean ) : int;
public: int CreateGdPictureImageFromIStream( IStream* Stream, bool DirectAccess )
public: int CreateGdPictureImageFromIStream( IStream^ Stream, bool DirectAccess )
Parameters
- Stream
- An IStream object storing the image data.
- DirectAccess
- When True, only image properties, metadata and embedded thumbnail will be loaded. This parameter is particularly useful to obtain image information's without decoding it. Be careful not to call subsequent methods that need to access pixel data if this parameter is set to True.
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.