Class TBGRACustomLayeredBitmap

Unit

Declaration

type TBGRACustomLayeredBitmap = class(TGraphic)

Description

Abstract class for storing a layered bitmap

Hierarchy

Overview

Methods

Public constructor Create; override;
Public destructor Destroy; override;
Public function ComputeFlatImage(firstLayer, lastLayer: integer; ASeparateXorMask: boolean = false): TBGRABitmap; overload;
Public function ComputeFlatImage(ARect: TRect; ASeparateXorMask: boolean = false): TBGRABitmap; overload;
Public function ComputeFlatImage(ARect: TRect; firstLayer, lastLayer: integer; ASeparateXorMask: boolean = false): TBGRABitmap; overload;
Public function ComputeFlatImage(ASeparateXorMask: boolean = false): TBGRABitmap; overload;
Public function DrawLayer(Dest: TBGRABitmap; X,Y: Integer; AIndex: integer; ASeparateXorMask: boolean = false; ADestinationEmpty: boolean = false): boolean;
Public function GetLayerBitmapCopy(layer: integer): TBGRABitmap; virtual; abstract;
Public function GetLayerBitmapDirectly(layer: integer): TBGRABitmap; virtual;
Public function ToString: ansistring; override;
Protected function ContainsFrozenRange(first,last: integer): boolean;
Protected function GetBlendOperation(Layer: integer): TBlendOperation; virtual; abstract;
Protected function GetEmpty: boolean; override;
Protected function GetLayerDrawMode(AIndex: integer): TDrawMode;
Protected function GetLayerFrozen(layer: integer): boolean; virtual;
Protected function GetLayerFrozenRange(layer: integer): integer;
Protected function GetLayerName(layer: integer): string; virtual;
Protected function GetLayerOffset(layer: integer): TPoint; virtual;
Protected function GetLayerOpacity(layer: integer): byte; virtual; abstract;
Protected function GetLayerOriginal(layer: integer): TBGRALayerCustomOriginal; virtual;
Protected function GetLayerOriginalGuid(layer: integer): TGuid; virtual;
Protected function GetLayerOriginalKnown(layer: integer): boolean; virtual;
Protected function GetLayerOriginalMatrix(layer: integer): TAffineMatrix; virtual;
Protected function GetLayerOriginalRenderStatus(layer: integer): TOriginalRenderStatus; virtual;
Protected function GetLayerUniqueId(layer: integer): integer; virtual;
Protected function GetLayerVisible(layer: integer): boolean; virtual; abstract;
Protected function GetMemDirectory: TMemDirectory;
Protected function GetNbLayers: integer; virtual; abstract;
Protected function GetOriginalByIndex(AIndex: integer): TBGRALayerCustomOriginal; virtual;
Protected function GetOriginalByIndexClass(AIndex: integer): TBGRALayerOriginalAny; virtual;
Protected function GetOriginalByIndexKnown(AIndex: integer): boolean; virtual;
Protected function GetOriginalByIndexLoaded(AIndex: integer): boolean; virtual;
Protected function GetOriginalCount: integer; virtual;
Protected function GetTransparent: Boolean; override;
Protected function IndexOfOriginal(AOriginal: TBGRALayerCustomOriginal): integer; overload; virtual;
Protected function IndexOfOriginal(const AGuid: TGuid): integer; overload; virtual;
Protected function RangeIntersect(first1,last1,first2,last2: integer): boolean;
Public procedure DiscardSelection;
Public procedure Draw(Canvas: TCanvas; x,y: integer); overload;
Public procedure Draw(Dest: TBGRABitmap; x,y: integer; ASeparateXorMask: boolean; ADestinationEmpty: boolean = false); overload;
Public procedure Draw(Dest: TBGRABitmap; AX,AY: integer; firstLayer, lastLayer: integer; ASeparateXorMask: boolean = false; ADestinationEmpty: boolean = false); overload;
Public procedure Draw(Canvas: TCanvas; x,y: integer; firstLayer, lastLayer: integer); overload;
Public procedure Draw(Dest: TBGRABitmap; x,y: integer); overload;
Public procedure Draw(ACanvas: TCanvas; const Rect: TRect); override; overload;
Public procedure Freeze; overload;
Public procedure Freeze(firstLayer, lastLayer: integer); overload;
Public procedure FreezeExceptOneLayer(layer: integer); overload;
Public procedure NotifyLoaded; virtual;
Public procedure NotifySaving; virtual;
Public procedure SaveToFile(const filenameUTF8: string); override;
Public procedure SaveToStream(Stream: TStream); override;
Public procedure SaveToStreamAs(Stream: TStream; AExtension: string);
Public procedure Unfreeze(firstLayer, lastLayer: integer); overload;
Public procedure Unfreeze(layer: integer); overload;
Public procedure Unfreeze; overload;
Protected procedure RemoveFrozenRange(index: integer);
Protected procedure SetHeight(Value: Integer); override;
Protected procedure SetLayerFrozen(layer: integer; AValue: boolean); virtual;
Protected procedure SetMemDirectory(AValue: TMemDirectory);
Protected procedure SetTransparent(Value: Boolean); override;
Protected procedure SetWidth(Value: Integer); override;

Properties

Public property BlendOperation[layer: integer]: TBlendOperation read GetBlendOperation;
Public property DefaultBlendingOperation: TBlendOperation read GetDefaultBlendingOperation;
Public property HasMemFiles: boolean read GetHasMemFiles;
Public property LayerFrozen[layer: integer]: boolean read GetLayerFrozen;
Public property LayerName[layer: integer]: string read GetLayerName;
Public property LayerOffset[layer: integer]: TPoint read GetLayerOffset;
Public property LayerOpacity[layer: integer]: byte read GetLayerOpacity;
Public property LayerOriginal[layer: integer]: TBGRALayerCustomOriginal read GetLayerOriginal;
Public property LayerOriginalGuid[layer: integer]: TGuid read GetLayerOriginalGuid;
Public property LayerOriginalKnown[layer: integer]: boolean read GetLayerOriginalKnown;
Public property LayerOriginalMatrix[layer: integer]: TAffineMatrix read GetLayerOriginalMatrix;
Public property LayerOriginalRenderStatus[layer: integer]: TOriginalRenderStatus read GetLayerOriginalRenderStatus;
Public property LayerUniqueId[layer: integer]: integer read GetLayerUniqueId;
Public property LayerVisible[layer: integer]: boolean read GetLayerVisible;
Public property LinearBlend: boolean read GetLinearBlend write SetLinearBlend;
Public property MemDirectory: TMemDirectory read GetMemDirectory write SetMemDirectory;
Public property MemDirectoryOwned: boolean read FMemDirectoryOwned write FMemDirectoryOwned;
Public property NbLayers: integer read GetNbLayers;
Public property SelectionDrawMode: TDrawMode read FSelectionDrawMode write FSelectionDrawMode;
Public property SelectionLayerIndex: integer read FSelectionLayerIndex write FSelectionLayerIndex;
Public property SelectionRect: TRect read FSelectionRect write FSelectionRect;
Public property SelectionScanner: IBGRAScanner read FSelectionScanner write FSelectionScanner;
Public property SelectionScannerOffset: TPoint read FSelectionScannerOffset write FSelectionScannerOffset;
Public property SelectionVisible: boolean read GetSelectionVisible;

Description

Methods

Public constructor Create; override;

This item has no description. Showing description inherited from TGraphic.Create.

Create an empty instance

Public destructor Destroy; override;

This item has no description.

Public function ComputeFlatImage(firstLayer, lastLayer: integer; ASeparateXorMask: boolean = false): TBGRABitmap; overload;

This item has no description.

Public function ComputeFlatImage(ARect: TRect; ASeparateXorMask: boolean = false): TBGRABitmap; overload;

This item has no description.

Public function ComputeFlatImage(ARect: TRect; firstLayer, lastLayer: integer; ASeparateXorMask: boolean = false): TBGRABitmap; overload;

This item has no description.

Public function ComputeFlatImage(ASeparateXorMask: boolean = false): TBGRABitmap; overload;

This item has no description.

Public function DrawLayer(Dest: TBGRABitmap; X,Y: Integer; AIndex: integer; ASeparateXorMask: boolean = false; ADestinationEmpty: boolean = false): boolean;

This item has no description.

Public function GetLayerBitmapCopy(layer: integer): TBGRABitmap; virtual; abstract;

This item has no description.

Public function GetLayerBitmapDirectly(layer: integer): TBGRABitmap; virtual;

This item has no description.

Public function ToString: ansistring; override;

This item has no description.

Protected function ContainsFrozenRange(first,last: integer): boolean;

This item has no description.

Protected function GetBlendOperation(Layer: integer): TBlendOperation; virtual; abstract;

This item has no description.

Protected function GetEmpty: boolean; override;

This item has no description. Showing description inherited from TGraphic.GetEmpty.

Check whether it is empty

Protected function GetLayerDrawMode(AIndex: integer): TDrawMode;

This item has no description.

Protected function GetLayerFrozen(layer: integer): boolean; virtual;

This item has no description.

Protected function GetLayerFrozenRange(layer: integer): integer;

This item has no description.

Protected function GetLayerName(layer: integer): string; virtual;

This item has no description.

Protected function GetLayerOffset(layer: integer): TPoint; virtual;

This item has no description.

Protected function GetLayerOpacity(layer: integer): byte; virtual; abstract;

This item has no description.

Protected function GetLayerOriginal(layer: integer): TBGRALayerCustomOriginal; virtual;

This item has no description.

Protected function GetLayerOriginalGuid(layer: integer): TGuid; virtual;

This item has no description.

Protected function GetLayerOriginalKnown(layer: integer): boolean; virtual;

This item has no description.

Protected function GetLayerOriginalMatrix(layer: integer): TAffineMatrix; virtual;

This item has no description.

Protected function GetLayerOriginalRenderStatus(layer: integer): TOriginalRenderStatus; virtual;

This item has no description.

Protected function GetLayerUniqueId(layer: integer): integer; virtual;

This item has no description.

Protected function GetLayerVisible(layer: integer): boolean; virtual; abstract;

This item has no description.

Protected function GetMemDirectory: TMemDirectory;

This item has no description.

Protected function GetNbLayers: integer; virtual; abstract;

This item has no description.

Protected function GetOriginalByIndex(AIndex: integer): TBGRALayerCustomOriginal; virtual;

This item has no description.

Protected function GetOriginalByIndexClass(AIndex: integer): TBGRALayerOriginalAny; virtual;

This item has no description.

Protected function GetOriginalByIndexKnown(AIndex: integer): boolean; virtual;

This item has no description.

Protected function GetOriginalByIndexLoaded(AIndex: integer): boolean; virtual;

This item has no description.

Protected function GetOriginalCount: integer; virtual;

This item has no description.

Protected function GetTransparent: Boolean; override;

This item has no description. Showing description inherited from TGraphic.GetTransparent.

Retrieves whether transparent

Protected function IndexOfOriginal(AOriginal: TBGRALayerCustomOriginal): integer; overload; virtual;

This item has no description.

Protected function IndexOfOriginal(const AGuid: TGuid): integer; overload; virtual;

This item has no description.

Protected function RangeIntersect(first1,last1,first2,last2: integer): boolean;

This item has no description.

Public procedure DiscardSelection;

This item has no description.

Public procedure Draw(Canvas: TCanvas; x,y: integer); overload;

This item has no description.

Public procedure Draw(Dest: TBGRABitmap; x,y: integer; ASeparateXorMask: boolean; ADestinationEmpty: boolean = false); overload;

This item has no description.

Public procedure Draw(Dest: TBGRABitmap; AX,AY: integer; firstLayer, lastLayer: integer; ASeparateXorMask: boolean = false; ADestinationEmpty: boolean = false); overload;

This item has no description.

Public procedure Draw(Canvas: TCanvas; x,y: integer; firstLayer, lastLayer: integer); overload;

This item has no description.

Public procedure Draw(Dest: TBGRABitmap; x,y: integer); overload;

This item has no description.

Public procedure Draw(ACanvas: TCanvas; const Rect: TRect); override; overload;

This item has no description. Showing description inherited from TGraphic.Draw.

Draw the content onto a canvas

Public procedure Freeze; overload;

This item has no description.

Public procedure Freeze(firstLayer, lastLayer: integer); overload;

This item has no description.

Public procedure FreezeExceptOneLayer(layer: integer); overload;

This item has no description.

Public procedure NotifyLoaded; virtual;

This item has no description.

Public procedure NotifySaving; virtual;

This item has no description.

Public procedure SaveToFile(const filenameUTF8: string); override;

This item has no description. Showing description inherited from TGraphic.SaveToFile.

Saves the content to a file

Public procedure SaveToStream(Stream: TStream); override;

This item has no description. Showing description inherited from TGraphic.SaveToStream.

Saves the content into a given stream

Public procedure SaveToStreamAs(Stream: TStream; AExtension: string);

This item has no description.

Public procedure Unfreeze(firstLayer, lastLayer: integer); overload;

This item has no description.

Public procedure Unfreeze(layer: integer); overload;

This item has no description.

Public procedure Unfreeze; overload;

This item has no description.

Protected procedure RemoveFrozenRange(index: integer);

This item has no description.

Protected procedure SetHeight(Value: Integer); override;

This item has no description. Showing description inherited from TGraphic.SetHeight.

Sets the height

Protected procedure SetLayerFrozen(layer: integer; AValue: boolean); virtual;

This item has no description.

Protected procedure SetMemDirectory(AValue: TMemDirectory);

This item has no description.

Protected procedure SetTransparent(Value: Boolean); override;

This item has no description. Showing description inherited from TGraphic.SetTransparent.

Sets whether to render as transparent

Protected procedure SetWidth(Value: Integer); override;

This item has no description. Showing description inherited from TGraphic.SetWidth.

Sets the widith

Properties

Public property BlendOperation[layer: integer]: TBlendOperation read GetBlendOperation;

This item has no description.

Public property DefaultBlendingOperation: TBlendOperation read GetDefaultBlendingOperation;

use linear blending unless specified

Public property HasMemFiles: boolean read GetHasMemFiles;

This item has no description.

Public property LayerFrozen[layer: integer]: boolean read GetLayerFrozen;

This item has no description.

Public property LayerName[layer: integer]: string read GetLayerName;

This item has no description.

Public property LayerOffset[layer: integer]: TPoint read GetLayerOffset;

This item has no description.

Public property LayerOpacity[layer: integer]: byte read GetLayerOpacity;

This item has no description.

Public property LayerOriginal[layer: integer]: TBGRALayerCustomOriginal read GetLayerOriginal;

This item has no description.

Public property LayerOriginalGuid[layer: integer]: TGuid read GetLayerOriginalGuid;

This item has no description.

Public property LayerOriginalKnown[layer: integer]: boolean read GetLayerOriginalKnown;

This item has no description.

Public property LayerOriginalMatrix[layer: integer]: TAffineMatrix read GetLayerOriginalMatrix;

This item has no description.

Public property LayerOriginalRenderStatus[layer: integer]: TOriginalRenderStatus read GetLayerOriginalRenderStatus;

This item has no description.

Public property LayerUniqueId[layer: integer]: integer read GetLayerUniqueId;

This item has no description.

Public property LayerVisible[layer: integer]: boolean read GetLayerVisible;

This item has no description.

Public property LinearBlend: boolean read GetLinearBlend write SetLinearBlend;

This item has no description.

Public property MemDirectory: TMemDirectory read GetMemDirectory write SetMemDirectory;

This item has no description.

Public property MemDirectoryOwned: boolean read FMemDirectoryOwned write FMemDirectoryOwned;

This item has no description.

Public property NbLayers: integer read GetNbLayers;

This item has no description.

Public property SelectionDrawMode: TDrawMode read FSelectionDrawMode write FSelectionDrawMode;

This item has no description.

Public property SelectionLayerIndex: integer read FSelectionLayerIndex write FSelectionLayerIndex;

This item has no description.

Public property SelectionRect: TRect read FSelectionRect write FSelectionRect;

This item has no description.

Public property SelectionScanner: IBGRAScanner read FSelectionScanner write FSelectionScanner;

This item has no description.

Public property SelectionScannerOffset: TPoint read FSelectionScannerOffset write FSelectionScannerOffset;

This item has no description.

Public property SelectionVisible: boolean read GetSelectionVisible;

This item has no description.