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. *
Note: it must not implement reference counting even if it is an interface *
TBGRACustomBitmap implements this interface and the content is repeated horizontally and vertically. There are also various classes in BGRAGradientScanner unit that generate gradients on the fly and in BGRATransform unit that provide geometrical transformations of images
Hierarchy
- IInterface
- IBGRAScanner
Overview
Methods
function GetImageBoundsWithin(const ARect: TRect; Channels: TChannels; ANothingValue: Byte = 0): TRect; overload; |
|
function GetImageBoundsWithin(const ARect: TRect; Channel: TChannel = cAlpha; ANothingValue: Byte = 0): TRect; overload; |
|
function GetScanCustomColorspace: TColorspaceAny; |
|
function GetScanlineAt(X,Y: integer): PBGRAPixel; |
|
function GetTextureGL: IUnknown; |
|
function IsScanPutPixelsDefined: boolean; |
|
function ProvidesScanline(ARect: TRect): boolean; |
|
function ScanAt(X,Y: Single): TBGRAPixel; |
|
function ScanAtExpanded(X,Y: Single): TExpandedPixel; |
|
function ScanAtInteger(X,Y: integer): TBGRAPixel; |
|
function ScanAtIntegerExpanded(X,Y: integer): TExpandedPixel; |
|
function ScanAtIntegerMask(X,Y: integer): TByteMask; |
|
function ScanAtMask(X,Y: Single): TByteMask; |
|
function ScanNextExpandedPixel: TExpandedPixel; |
|
function ScanNextPixel: TBGRAPixel; |
|
procedure ScanMoveTo(X,Y: Integer); |
|
procedure ScanNextCustomChunk(var ACount: integer; out APixels: Pointer); |
|
procedure ScanNextMaskChunk(var ACount: integer; out AMask: PByteMask; out AStride: integer); |
|
procedure ScanPutPixels(pdest: PBGRAPixel; count: integer; mode: TDrawMode); |
|
procedure ScanSkipPixels(ACount: integer); |
Description
Methods
function GetImageBoundsWithin(const ARect: TRect; Channels: TChannels; ANothingValue: Byte = 0): TRect; overload; |
|
This item has no description. |
function GetImageBoundsWithin(const ARect: TRect; Channel: TChannel = cAlpha; ANothingValue: Byte = 0): TRect; overload; |
|
This item has no description. |
function GetScanCustomColorspace: TColorspaceAny; |
|
This item has no description. |
function GetScanlineAt(X,Y: integer): PBGRAPixel; |
|
This item has no description. |
function GetTextureGL: IUnknown; |
|
Returns the corresponding OpenGL texture. The value is nil if no texture is associated. ** |
function IsScanPutPixelsDefined: boolean; |
|
Returns True if the function ScanPutPixels is available. Otherwise you need to call ScanNextPixel and combine pixels for example with SetPixel |
function ProvidesScanline(ARect: TRect): boolean; |
|
This item has no description. |
function ScanAt(X,Y: Single): TBGRAPixel; |
|
Scan at any location using floating point coordinates |
function ScanAtExpanded(X,Y: Single): TExpandedPixel; |
|
This item has no description. |
function ScanAtInteger(X,Y: integer): TBGRAPixel; |
|
Scan at any location using integer coordinates |
function ScanAtIntegerExpanded(X,Y: integer): TExpandedPixel; |
|
This item has no description. |
function ScanAtIntegerMask(X,Y: integer): TByteMask; |
|
This item has no description. |
function ScanAtMask(X,Y: Single): TByteMask; |
|
This item has no description. |
function ScanNextExpandedPixel: TExpandedPixel; |
|
This item has no description. |
function ScanNextPixel: TBGRAPixel; |
|
Scan the pixel at the current location and increments X |
procedure ScanMoveTo(X,Y: Integer); |
|
Move to the position (X, Y) for the next call to ScanNextPixel |
procedure ScanNextCustomChunk(var ACount: integer; out APixels: Pointer); |
|
This item has no description. |
procedure ScanNextMaskChunk(var ACount: integer; out AMask: PByteMask; out AStride: integer); |
|
This item has no description. |
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 |
procedure ScanSkipPixels(ACount: integer); |
|
This item has no description. |