Unit BGRAGrayscaleMask

📄 Source code

Description

Supplies a linear grayscale bitmap (8-bit per pixel) without transparency.

Pixels are in TByteMask format, based on linear grayscale colorspace (TByteMaskColorspace).

A grayscale mask can be used to compute a shape, regardless of the colors. This is useful for example for text rendering and for layer masking.

Bitmap units: BGRABitmap, ExpandedBitmap, BGRAGrayscaleMask, LinearRGBABitmap, WordXYZABitmap, XYZABitmap.

Uses

Overview

Structures

Name Description
Class TGrayscaleMask 8-bit grayscale image.

Functions and Procedures

operator = (const c1, c2: TByteMask): boolean; inline;
procedure BGRAFillClearTypeGrayscaleMask(dest: TBGRACustomBitmap; x, y: integer; xThird: integer; mask: TGrayscaleMask; color: TBGRAPixel; texture: IBGRAScanner; RGBOrder: boolean);
procedure DownSamplePutImageGrayscale(source: TGrayscaleMask; dest: TGrayscaleMask; ADestRect: TRect; ASourceRect: TRect); overload;
procedure DownSamplePutImageGrayscale(source: TBGRACustomBitmap; dest: TGrayscaleMask; ADestRect: TRect; ASourceRect: TRect); overload;
procedure DownSamplePutImageGrayscale(sourceData: PByte; sourcePixelSize: Int32or64; sourceRowDelta: Int32or64; sourceWidth, sourceHeight: Int32or64; dest: TGrayscaleMask; ADestRect: TRect); overload;
procedure DownSamplePutImageGrayscale(source: TBGRACustomBitmap; dest: TGrayscaleMask; ADestRect: TRect); overload;
procedure DownSamplePutImageGrayscale(source: TGrayscaleMask; dest: TGrayscaleMask; ADestRect: TRect); overload;

Constants

ByteMaskBlack : TByteMask = (gray:0);
ByteMaskWhite : TByteMask = (gray:255);

Description

Functions and Procedures

operator = (const c1, c2: TByteMask): boolean; inline;

This item has no description.

procedure BGRAFillClearTypeGrayscaleMask(dest: TBGRACustomBitmap; x, y: integer; xThird: integer; mask: TGrayscaleMask; color: TBGRAPixel; texture: IBGRAScanner; RGBOrder: boolean);

This item has no description.

procedure DownSamplePutImageGrayscale(source: TGrayscaleMask; dest: TGrayscaleMask; ADestRect: TRect; ASourceRect: TRect); overload;

This item has no description.

procedure DownSamplePutImageGrayscale(source: TBGRACustomBitmap; dest: TGrayscaleMask; ADestRect: TRect; ASourceRect: TRect); overload;

This item has no description.

procedure DownSamplePutImageGrayscale(sourceData: PByte; sourcePixelSize: Int32or64; sourceRowDelta: Int32or64; sourceWidth, sourceHeight: Int32or64; dest: TGrayscaleMask; ADestRect: TRect); overload;

This item has no description.

procedure DownSamplePutImageGrayscale(source: TBGRACustomBitmap; dest: TGrayscaleMask; ADestRect: TRect); overload;

This item has no description.

procedure DownSamplePutImageGrayscale(source: TGrayscaleMask; dest: TGrayscaleMask; ADestRect: TRect); overload;

This item has no description.

Constants

ByteMaskBlack : TByteMask = (gray:0);

This item has no description.

ByteMaskWhite : TByteMask = (gray:255);

This item has no description.