[]
Represents a bi-level transparency mask or an image containing two colors: black and white in either a white-is-zero or black-is-zero format.
new BilevelBitmap(
width,
height,
bbProperties?): BilevelBitmap;
Creates a BilevelBitmap instance with optionally initialized pixels.
number
The bi-level bitmap width, in pixels.
number
The bi-level bitmap height, in pixels.
The settings for creating a bi-level bitmap.
BilevelBitmap
ObjectBase.constructor
new BilevelBitmap(
om,
width,
height,
bbProperties?): BilevelBitmap;
Creates a BilevelBitmap instance with optionally initialized pixels.
An object manager that controls the lifetime of the BilevelBitmap object.
number
The bi-level bitmap width, in pixels.
number
The bi-level bitmap height, in pixels.
The settings for creating a bi-level bitmap.
BilevelBitmap
ObjectBase.constructor
get height(): number;
Gets the height of the BilevelBitmap, in pixels.
number
get id(): number;
Gets the reference to the object.
number
get lowerBitsFirst(): boolean;
Gets or sets a value specifying whether pixels with lower column indices are stored in the lower-order bits of the byte.
boolean
set lowerBitsFirst(value): void;
Gets or sets a value specifying whether pixels with lower column indices are stored in the lower-order bits of the byte.
boolean
void
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get transparencyMask(): boolean;
Gets or sets a value indicating whether the image is used to define an alpha mask of another image.
boolean
set transparencyMask(value): void;
Gets or sets a value indicating whether the image is used to define an alpha mask of another image.
boolean
void
get whiteIsZero(): boolean;
Gets or sets a value indicating whether 0 represents white and 1 represents black (if true) or vice versa (if false).
boolean
set whiteIsZero(value): void;
Gets or sets a value indicating whether 0 represents white and 1 represents black (if true) or vice versa (if false).
boolean
void
get width(): number;
Gets the width of the BilevelBitmap, in pixels.
number
clear(value, bounds?): void;
Clears the BilevelBitmap with the specified value (true is 1, false is 0).
boolean
The value to fill the image (true is 1, false is 0).
The target rectangle of the BilevelBitmap.
void
clip(
x,
y,
width,
height,
metadataOnly?): BilevelBitmap;
Creates a new BilevelBitmap with a fragment of the image.
number
The X coordinate of the clipping rectangle.
number
The Y coordinate of the clipping rectangle.
number
The width of the clipping rectangle.
number
The height of the clipping rectangle.
boolean
Specifies whether to copy the image metadata only, not actual pixel data. The default is false.
BilevelBitmap
A new BilevelBitmap with a fragment of the source image.
clip(bounds, metadataOnly?): BilevelBitmap;
Creates a new BilevelBitmap with a fragment of the image.
Clipping rectangle of the source image to be extracted as a new BilevelBitmap.
boolean
Specifies whether to copy the image metadata only, not actual pixel data. The default is false.
BilevelBitmap
A new BilevelBitmap with a fragment of the source image.
clone(metadataOnly?): BilevelBitmap;
Creates a new BilevelBitmap with a copy of the image.
boolean
specifies whether to copy the image metadata only, not actual pixel data.
BilevelBitmap
A new instance of the BilevelBitmap.
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
invertColors(): void;
Inverts all black pixels to white and all white pixels to black.
void
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void
toBitmap(): Bitmap;
Creates a Bitmap instance from the current BilevelBitmap.
A new instance of the Bitmap class.