Class TDitheringTask

Unit

Declaration

type TDitheringTask = class(TFilterTask)

Description

Abstract dithering task

Hierarchy

Overview

Fields

Protected FBounds: TRect;
Protected FCurrentOutputScanline: PBGRAPixel;
Protected FCurrentOutputY: Int32or64;
Protected FDrawMode: TDrawMode;
Protected FIgnoreAlpha: boolean;
Protected FOutputPixel: TOutputPixelProc;
Protected FPalette: TBGRACustomApproxPalette;

Methods

Public constructor Create(ASource: IBGRAScanner; APalette: TBGRACustomApproxPalette; ADestination: TBGRACustomBitmap; AIgnoreAlpha: boolean; ABounds: TRect); overload;
Public constructor Create(bmp: TBGRACustomBitmap; APalette: TBGRACustomApproxPalette; AInPlace: boolean; AIgnoreAlpha: boolean; ABounds: TRect); overload;
Public constructor Create(bmp: TBGRACustomBitmap; APalette: TBGRACustomApproxPalette; AInPlace: boolean; AIgnoreAlpha: boolean); overload;
Protected procedure ApproximateColor(const AColor: TBGRAPixel; out AApproxColor: TBGRAPixel; out AIndex: integer);
Protected procedure OutputPixel(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;
Protected procedure OutputPixelDraw(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;
Protected procedure OutputPixelLinearBlend(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;
Protected procedure OutputPixelSet(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;
Protected procedure OutputPixelSetExceptTransparent(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;
Protected procedure OutputPixelXor(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;
Protected procedure SetDrawMode(AValue: TDrawMode);
Protected procedure UpdateCurrentLine(Y: Int32or64); inline;
Protected procedure UpdateOutputPixel;

Properties

Public property DrawMode: TDrawMode read FDrawMode write SetDrawMode;
Public property OnOutputPixel: TOutputPixelProc read FOutputPixel write FOutputPixel;

Description

Fields

Protected FBounds: TRect;

This item has no description.

Protected FCurrentOutputScanline: PBGRAPixel;

This item has no description.

Protected FCurrentOutputY: Int32or64;

This item has no description.

Protected FDrawMode: TDrawMode;

This item has no description.

Protected FIgnoreAlpha: boolean;

This item has no description.

Protected FOutputPixel: TOutputPixelProc;

This item has no description.

Protected FPalette: TBGRACustomApproxPalette;

This item has no description.

Methods

Public constructor Create(ASource: IBGRAScanner; APalette: TBGRACustomApproxPalette; ADestination: TBGRACustomBitmap; AIgnoreAlpha: boolean; ABounds: TRect); overload;

This item has no description.

Public constructor Create(bmp: TBGRACustomBitmap; APalette: TBGRACustomApproxPalette; AInPlace: boolean; AIgnoreAlpha: boolean; ABounds: TRect); overload;

This item has no description.

Public constructor Create(bmp: TBGRACustomBitmap; APalette: TBGRACustomApproxPalette; AInPlace: boolean; AIgnoreAlpha: boolean); overload;

This item has no description.

Protected procedure ApproximateColor(const AColor: TBGRAPixel; out AApproxColor: TBGRAPixel; out AIndex: integer);

This item has no description.

Protected procedure OutputPixel(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;

This item has no description.

Protected procedure OutputPixelDraw(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;

This item has no description.

Protected procedure OutputPixelLinearBlend(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;

This item has no description.

Protected procedure OutputPixelSet(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;

This item has no description.

Protected procedure OutputPixelSetExceptTransparent(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;

This item has no description.

Protected procedure OutputPixelXor(X,Y: Int32or64; AColorIndex: Int32or64; AColor: TBGRAPixel); virtual;

This item has no description.

Protected procedure SetDrawMode(AValue: TDrawMode);

This item has no description.

Protected procedure UpdateCurrentLine(Y: Int32or64); inline;

This item has no description.

Protected procedure UpdateOutputPixel;

This item has no description.

Properties

Public property DrawMode: TDrawMode read FDrawMode write SetDrawMode;

This item has no description.

Public property OnOutputPixel: TOutputPixelProc read FOutputPixel write FOutputPixel;

This item has no description.