SysGraphicLightDrawBitmap (FUN)

FUNCTION SysGraphicLightDrawBitmap : RTS_IEC_RESULT

<description>

Function to draw a bitmap into a rectangle. </description>

<param name=”hDisplayContext” type=”IN”>Handle to device context.</param> <param name=”rectangle” type=”IN”>Rectangle description.</param> <param name=”pbyData” TYPE=”IN”>Bitmap data</param> <param name=”udiDataSize” type=”IN”>Bitmap data size</param> <param name=”udiTransparentColor” type=”IN”>Contains the color that should be used as the transparent color. Will only be evaluated when

the according flag is set. </param>

<param name=”udiFlags” type=”IN”>Flags. Defined in IEC-Code for Visualization. At the moment only the flag for

transparency is relevant when loading an image!</param>

<result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Return

SysGraphicLightDrawBitmap

RTS_IEC_RESULT

Input

hDisplayContext

RTS_IEC_HANDLE

rectangle

SimpleRectangle

pbyData

POINTER TO BYTE

udiDataSize

UDINT

udiTransparentColor

UDINT

udiFlags

UDINT