Creates a GrayscaleBitmap instance with optionally initialized pixels.
The grayscale bitmap width, in pixels.
The grayscale bitmap height, in pixels.
OptionalgbProperties: GrayscaleBitmapPropertiesThe settings for creating a grayscale bitmap.
Creates a GrayscaleBitmap instance with optionally initialized pixels.
An object manager that controls the lifetime of the GrayscaleBitmap object.
The grayscale bitmap width, in pixels.
The grayscale bitmap height, in pixels.
OptionalgbProperties: GrayscaleBitmapPropertiesThe settings for creating a grayscale bitmap.
Gets the height of the GrayscaleBitmap, in pixels.
Gets the reference to the object.
Gets the owner ObjectManager instance.
Gets or sets a value indicating whether the image is used to define an alpha mask of another image.
Gets or sets a value indicating whether the image is used to define an alpha mask of another image.
Gets or sets a value specifying whether 0 represents white and 255 represents black (if true) or vice versa (if false).
Gets or sets a value specifying whether 0 represents white and 255 represents black (if true) or vice versa (if false).
Gets the width of the GrayscaleBitmap, in pixels.
Adjusts the levels of an image histogram. The method maps the input range of values (blackPoint..whitePoint) to the output range (outputBlack..outputWhite) using the specified gamma correction (midtone).
The input black point (between 0 and 255).
The input white point (between 0 and 255).
The output black point (between 0 and 255).
The output white point (between 0 and 255).
Optionalmidtone: number = 1.0The value of gamma correction.
Applies a Gaussian blur to this GrayscaleBitmap.
Optionalradius: number = 9The radius of the blur, in pixels.
OptionalborderMode: GaussianBlurBorderMode | nullThe mapping mode for the pixels outside of the border, "RepeatEdge" if null.
OptionalborderColor: number = 0The color used to blend with the edge pixels of the image (between 0 and 255).
When applied to a grayscale mask built from a color image using the Bitmap#toGrayscaleBitmap method, modifies it so that the result can be used as a transparency mask to produce "Glow" or "Soft Edges" effects.
OptionalinfRadius: number = 4The radius of inflation (positive, glow) or deflation (negative, soft edges), in pixels.
OptionalblurRadius: number = 6The radius of Gaussian blur, in pixels.
Modifies pixel intensities such that available range of values (0..255) is fully covered.
Modifies pixel intensities, clipping extremely low and extremely high values, such that available range of values (0..255) is fully covered.
The fraction of extremely low values to be clipped, not greater than 0.1.
The fraction of extremely high values to be clipped, not greater than 0.1.
Clears the GrayscaleBitmap with the specified value.
The value (between 0 and 255) to fill the image.
Optionalbounds: Bounds | nullThe target rectangle of the GrayscaleBitmap.
Creates a new GrayscaleBitmap with a fragment of the image.
A clipping rectangle to be extracted as a new GrayscaleBitmap.
OptionalmetadataOnly: boolean = falseSpecifies whether to copy the image metadata only, not actual pixel data.
A new instance of the GrayscaleBitmap.
Creates a new GrayscaleBitmap with a copy of the image.
OptionalmetadataOnly: boolean = falsespecifies whether to copy the image metadata only, not actual pixel data.
A new instance of the GrayscaleBitmap.
Detaches the object from the ObjectManager and deallocates its memory, if possible.
Inverts the pixel colors from black to white and vice versa.
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
Creates a Bitmap instance from the current GrayscaleBitmap.
A new instance of the Bitmap class.
Creates a semi-transparent Bitmap from the current GrayscaleBitmap. This method treats the current GrayscaleBitmap as a transparency mask, regardless of the transparencyMask property value.
The color to fill opaque pixels of the target bitmap.
OptionalopacityFactor: number = 1Additional factor to scale the alpha channel.
OptionalzeroIsOpaque: boolean = falseSpecifies whether zero values correspond to fully opaque (true) or fully transparent (false) pixels.
A new instance of the Bitmap class.
Represents a grayscale image or transparency mask with 8 bits per pixel.