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

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

Properties

Inverted (console safe) True if the mask should be inverted, else false.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM