GxImage: ConvertImage

ConvertImage

This method changes the size and/or format of the control's image.



 Public Function ConvertImage(
	  ByVal Format As enumFormat,
	  ByVal XSize As Long,
	  ByVal YSize As Long,
	  ByVal SLine As Long ) As Long

Parameters

Format
Pixel format.
XSize
Horizontal size in pixels.
YSize
Vertical size in pixels.
SLine
Length of a row in bytes. This parameter can be 0. In this case the proper value is calculated.

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 ConvertImage(ByVal format As enumFormat, ByVal xsize As Long, ByVal ysize As Long, ByVal sline As Long) As Long

[Delphi] function ConvertImage(format : TOleEnum; xsize : Integer; ysize : Integer; sline : Integer) : Integer;

[C++] long ConvertImage(long format, long xsize, long ysize, long sline);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods Contrast CopyImage