Class TBGRAContourScanner

Unit

Declaration

type TBGRAContourScanner = class(TBGRA3X3FilterScanner)

Description

Scanner that computes the contour of the elements of an image.

It computes a grayscale image, then for each pixel calculates the difference with surrounding pixels (in intensity and alpha) and draw black pixels when there is a difference.

Hierarchy

Overview

Fields

Protected FGammaCorrection: boolean;
Protected FOpacity: byte;

Methods

Public constructor Create(ASource: TBGRACustomBitmap; AGammaCorrection: boolean = False); overload;
Public constructor Create(ASource: IBGRAScanner; ABounds: TRect; AGammaCorrection: boolean = False); overload;
Protected function DoFilter3X3(PTop,PMiddle,PBottom: PBGRAPixel): TBGRAPixel; override;

Properties

Public property Opacity: Byte read FOpacity write FOpacity;

Description

Fields

Protected FGammaCorrection: boolean;

This item has no description.

Protected FOpacity: byte;

This item has no description.

Methods

Public constructor Create(ASource: TBGRACustomBitmap; AGammaCorrection: boolean = False); overload;

This item has no description.

Public constructor Create(ASource: IBGRAScanner; ABounds: TRect; AGammaCorrection: boolean = False); overload;

This item has no description.

Protected function DoFilter3X3(PTop,PMiddle,PBottom: PBGRAPixel): TBGRAPixel; override;

This item has no description.

Properties

Public property Opacity: Byte read FOpacity write FOpacity;

This item has no description.