GxImage: CreateImage

CreateImage

This method creates an image from an external (custom) source.



 Public Function CreateImage(
	  ByVal image As Variant,
	  ByVal Format As Long,
	  ByVal XSize As Long,
	  ByVal YSize As Long,
	  ByVal SLine As Long ) As Long

Parameters

image
Buffer containing the custom image data.
Format
Pixel format of the custom image data.
XSize
Horizontal size of the custom image data in pixels.
YSize
Vertical size of the custom image data in pixels.
SLine
Length of a row in bytes (min.: xsize * size of a pixel in bytes). If zero the system computes the correct value.

Return Values

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

Languages

[Visual Basic] Public Function CreateImage(ByVal image As Variant, ByVal format As Long, ByVal xsize As Long, ByVal ysize As Long, ByVal sline As Long) As Long

[Delphi] function CreateImage(image : Variant; format : Integer; xsize : Integer; ysize : Integer; sline : Integer) : Integer;

[C++] long CreateImage(VARIANT image, long format, long xsize, long ysize, long sline);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods CopyView DblClick