Interface IBGRAScanner

Unit

Declaration

type IBGRAScanner = interface(IInterface)

Description

Interface for a scanner. A scanner is like an image, but its content has no limit and it can be calculated on the fly. It is like a infinite readonly image. *

Hierarchy

Overview

Methods

Public function GetImageBoundsWithin(const ARect: TRect; Channels: TChannels; ANothingValue: Byte = 0): TRect; overload;
Public function GetImageBoundsWithin(const ARect: TRect; Channel: TChannel = cAlpha; ANothingValue: Byte = 0): TRect; overload;
Public function GetScanCustomColorspace: TColorspaceAny;
Public function GetScanlineAt(X,Y: integer): PBGRAPixel;
Public function GetTextureGL: IUnknown;
Public function IsScanPutPixelsDefined: boolean;
Public function ProvidesScanline(ARect: TRect): boolean;
Public function ScanAt(X,Y: Single): TBGRAPixel;
Public function ScanAtExpanded(X,Y: Single): TExpandedPixel;
Public function ScanAtInteger(X,Y: integer): TBGRAPixel;
Public function ScanAtIntegerExpanded(X,Y: integer): TExpandedPixel;
Public function ScanAtIntegerMask(X,Y: integer): TByteMask;
Public function ScanAtMask(X,Y: Single): TByteMask;
Public function ScanNextExpandedPixel: TExpandedPixel;
Public function ScanNextPixel: TBGRAPixel;
Public procedure ScanMoveTo(X,Y: Integer);
Public procedure ScanNextCustomChunk(var ACount: integer; out APixels: Pointer);
Public procedure ScanNextMaskChunk(var ACount: integer; out AMask: PByteMask; out AStride: integer);
Public procedure ScanPutPixels(pdest: PBGRAPixel; count: integer; mode: TDrawMode);
Public procedure ScanSkipPixels(ACount: integer);

Description

Methods

Public function GetImageBoundsWithin(const ARect: TRect; Channels: TChannels; ANothingValue: Byte = 0): TRect; overload;

This item has no description.

Public function GetImageBoundsWithin(const ARect: TRect; Channel: TChannel = cAlpha; ANothingValue: Byte = 0): TRect; overload;

This item has no description.

Public function GetScanCustomColorspace: TColorspaceAny;

This item has no description.

Public function GetScanlineAt(X,Y: integer): PBGRAPixel;

This item has no description.

Public function GetTextureGL: IUnknown;

Returns the corresponding OpenGL texture. The value is nil if no texture is associated. **

Public function IsScanPutPixelsDefined: boolean;

Returns True if the function ScanPutPixels is available. Otherwise you need to call ScanNextPixel and combine pixels for example with SetPixel

Public function ProvidesScanline(ARect: TRect): boolean;

This item has no description.

Public function ScanAt(X,Y: Single): TBGRAPixel;

Scan at any location using floating point coordinates

Public function ScanAtExpanded(X,Y: Single): TExpandedPixel;

This item has no description.

Public function ScanAtInteger(X,Y: integer): TBGRAPixel;

Scan at any location using integer coordinates

Public function ScanAtIntegerExpanded(X,Y: integer): TExpandedPixel;

This item has no description.

Public function ScanAtIntegerMask(X,Y: integer): TByteMask;

This item has no description.

Public function ScanAtMask(X,Y: Single): TByteMask;

This item has no description.

Public function ScanNextExpandedPixel: TExpandedPixel;

This item has no description.

Public function ScanNextPixel: TBGRAPixel;

Scan the pixel at the current location and increments X

Public procedure ScanMoveTo(X,Y: Integer);

Move to the position (X, Y) for the next call to ScanNextPixel

Public procedure ScanNextCustomChunk(var ACount: integer; out APixels: Pointer);

This item has no description.

Public procedure ScanNextMaskChunk(var ACount: integer; out AMask: PByteMask; out AStride: integer);

This item has no description.

Public procedure ScanPutPixels(pdest: PBGRAPixel; count: integer; mode: TDrawMode);

Copy a row of pixels from X to X + count - 1 to a specified destination pdest. mode indicates how to combine with existing data

Public procedure ScanSkipPixels(ACount: integer);

This item has no description.