GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / CreateGdPictureImageFromMemory Method
A pointer to the area of the memory which stores the document.
The length in byte of the area.





In This Topic
CreateGdPictureImageFromMemory Method (GdPictureImaging)
In This Topic
Creates a new GdPicture image from an image file stored within an area of the memory.
Syntax
'Declaration
 
Public Function CreateGdPictureImageFromMemory( _
   ByVal hMem As IntPtr, _
   ByVal Length As Integer _
) As Integer
public int CreateGdPictureImageFromMemory( 
   IntPtr hMem,
   int Length
)
public function CreateGdPictureImageFromMemory( 
    hMem: IntPtr;
    Length: Integer
): Integer; 
public function CreateGdPictureImageFromMemory( 
   hMem : IntPtr,
   Length : int
) : int;
public: int CreateGdPictureImageFromMemory( 
   IntPtr hMem,
   int Length
) 
public:
int CreateGdPictureImageFromMemory( 
   IntPtr hMem,
   int Length
) 

Parameters

hMem
A pointer to the area of the memory which stores the document.
Length
The length in byte of the area.

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.

This method requires the Image Documents component to run.

See Also