Class TBGRARandomScanner
Unit
Declaration
type TBGRARandomScanner = class(TBGRACustomScanner)
Description
Scanner of random color.
Example filling a form with random pixels:
uses ..., BGRABitmap, BGRAGradientScanner; procedure TForm1.FormPaint(Sender: TObject); var bmp: TBGRABitmap; scan: TBGRARandomScanner; begin bmp := TBGRABitmap.Create(ClientWidth, ClientHeight); scan := TBGRARandomScanner.Create(False, 255); bmp.Fill(scan); scan.Free; bmp.Draw(Canvas,0,0); bmp.Free; end;
Hierarchy
- IInterface
- IBGRAScanner
- TBGRACustomScanner
- TBGRARandomScanner
Overview
Methods
constructor Create(AGrayscale: Boolean; AOpacity: byte); |
|
function ScanAt(X, Y: Single): TBGRAPixel; override; |
|
function ScanAtInteger(X, Y: integer): TBGRAPixel; override; |
|
function ScanNextPixel: TBGRAPixel; override; |
Description
Methods
constructor Create(AGrayscale: Boolean; AOpacity: byte); |
|
This item has no description. |
function ScanAt(X, Y: Single): TBGRAPixel; override; |
|
This item has no description. |
function ScanAtInteger(X, Y: integer): TBGRAPixel; override; |
|
This item has no description. |
function ScanNextPixel: TBGRAPixel; override; |
|
This item has no description. |