TypeLib Xojo support Plugin

RawBitmapMask.Constructor Constructor

A constructor that constructs a mask from a RawBitmap ,taking in boolean value to decide if the mask should be inverted or not. This constructor also takes parameter to choose which channel from the RawBitmap to use.

Constructor(
   bitMap as RawBitmap,
   inverted as Boolean,
   activeChannel as UInt8)

Parameters

bitMap
The RawBitmap to use for the mask.
inverted
True if the mask should be inverted, else false.
activeChannel
The channel to be used. This can be from 0 to 3 (though it of course depends on how many channels your RawBitmap has if you can go to 3 or just to lower number)

Remarks

Note that if color mask is passed to this constructor then the Red channel is chosen as mask.

The RawBitmap passed in will not be copied. So if you update your RawBitmap after passing it in then you are also updating the mask.

Masks can also be inverted at zero CPU cost, this is done by not actually changing the mask just letting it respond differently to the image processing class that is using it.

See Also

RawBitmapMask Class