SetImageMask

Description

Copies a color channel from one image to another. You can specify the source and destination channels using the values 1,2,3,4 to represent red,green,blue,alpha respectively.

This is a slow command and should not be called every frame.

The x,y offset values allow you to offset the source image on te destination image so a small source image can be used to mask any part of a large image. Any part of the large image outside the size of the small image will be left unchanged. negative offset values are supported to shift the source image off the top left of the destination image.

Definition

SetImageMask( iDstImage, iSrcImage, dst, src, x, y )

Parameters