GxImage: LoadFromMem

LoadFromMem

This method loads an image from a memory buffer.



 Public Function LoadFromMem(
	  ByVal buffer As Variant,
	  ByVal pixelformat As enumFormat ) As Long

Parameters

buffer
Byte buffer that stores the image.
pixelformat
Pixel format.

Return Values

On error false (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Function LoadFromMem(ByVal buffer As Variant, ByVal pixelformat As enumFormat) As Long

[Delphi] function LoadFromMem(buffer: Variant; pixelformat : TOleEnum) : Integer;

[C++] long LoadFromMem(VARIANT buffer, enumFormat pixelformat);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods LineWidth LoadImage