TypeLib Xojo support Plugin |

# RawBitmapMask Class (console safe)

A class that is used to define masks when doing image manipulations on RawBitmap objects.
This class can both define simple rectangular masks and complex bitmap masks.
When using simple rectangular masks then their not converted internally to bitmaps so the resource consumption is really low.
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.
The RawBitmapMask object is done in such way that size of mask does not have to match the size of the RawBitmap that a image processing class is working with.

Object
RawBitmapMask

class RawBitmapMask

#### Constructors

RawBitmapMask | A constructor that constructs a simple rectangular mask, making the mask tone 0 (fully black).
RawBitmapMask | A constructor that constructs a simple rectangular mask, where you can define the mask tone from 0 (black) to 255 (white).
RawBitmapMask | A constructor that constructs a mask from a RawBitmap.
RawBitmapMask | A constructor that constructs a mask from a RawBitmap ,taking in boolean value to decide if the mask should be inverted or not.
RawBitmapMask | 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.
RawBitmapMask | A constructor constructs mask from PolygonF object from the TypeLibF plugin
RawBitmapMask | A constructor that constructs mask from PolygonF object, where you can define the mask tone from 0 (black) to 255 (white).

#### Properties

Bitmap | Returns the bitmap from the mask if the mask is actually bitmap based. If the mask is not bitmap based then nil is returned in this property.
Inverted | True if the mask should be inverted, else false.

#### Methods

shared CreateHorizontalFadingMask | Creates a horizontal fading mask that starts its fade at given location and has a given width.
shared CreateVerticalFadingMask | Creates a vertical fading mask that starts its fade at given location and has a given height.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS