SetImage Data Member Function

Initializes an <Image> to the dimensions specified by 'Width' and 'Height' and the pixel format specified by 'PixelFormat'. For improved code semantics, prefer AllocateBuffer instead.

Prototype

int32 SetImage( int32 p_nWidth, int32 p_nHeight, int32 p_ePixelFormat )

Parameters

Parameter Type Parameter Name Documentation
int32p_nWidthThe new width of the <Image>.
int32p_nHeightThe new height of the <Image>.
int32p_ePixelFormatThe new pixel format of the <Image>. This refers to the Image_Pixel_Format enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information. and look for the values starting with IPF_None.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.