Class TBGRALayerSVGOriginal

Unit

Declaration

type TBGRALayerSVGOriginal = class(TBGRALayerCustomOriginal)

Description

Original for an SVG layer in a layered image

Hierarchy

Overview

Fields

Protected FContentVersion: integer;
Protected FDiff: TBGRASVGOriginalDiff;
Protected FPresentationMatrix: TAffineMatrix;
Protected FSVG: TBGRASVG;

Methods

Public constructor Create; override;
Public destructor Destroy; override;
Public class function CanConvertToSVG: boolean; override;
Public function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TBGRASVG; override;
Public function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; override;
Public function GetSVGCopy: TBGRASVG;
Public class function StorageClassName: RawByteString; override;
Public procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); override;
Public procedure LoadFromStream(AStream: TStream); override;
Public procedure LoadSVGFromStream(AStream: TStream; AContainerWidth: integer = 640; AContainerHeight: integer = 480; AScaleDPI: single = 1);
Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); override;
Public procedure SaveSVGToStream(AStream: TStream);
Public procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); override;
Public procedure SetSVG(ASVG: TBGRASVG; AContainerWidth: integer = 640; AContainerHeight: integer = 480; AScaleDPI: single = 1);
Protected procedure BeginUpdate;
Protected procedure ComputePresentation(AContainerWidth, AContainerHeight: integer; AScaleDPI: single);
Protected procedure EndUpdate;

Properties

Public property DPI: single read GetDPI write SetDPI;
Public property Height: single read GetSvgHeight;
Public property PresentationMatrix: TAffineMatrix read FPresentationMatrix;
Public property Width: single read GetSvgWidth;

Description

Fields

Protected FContentVersion: integer;

This item has no description.

Protected FDiff: TBGRASVGOriginalDiff;

This item has no description.

Protected FPresentationMatrix: TAffineMatrix;

This item has no description.

Protected FSVG: TBGRASVG;

This item has no description.

Methods

Public constructor Create; override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public class function CanConvertToSVG: boolean; override;

This item has no description.

Public function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TBGRASVG; override;

This item has no description.

Public function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; override;

This item has no description.

Public function GetSVGCopy: TBGRASVG;

This item has no description.

Public class function StorageClassName: RawByteString; override;

This item has no description.

Public procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); override;

This item has no description.

Public procedure LoadFromStream(AStream: TStream); override;

This item has no description.

Public procedure LoadSVGFromStream(AStream: TStream; AContainerWidth: integer = 640; AContainerHeight: integer = 480; AScaleDPI: single = 1);

This item has no description.

Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); override;

This item has no description. Showing description inherited from TBGRALayerCustomOriginal.Render.

one of the two Render functions must be overriden

Public procedure SaveSVGToStream(AStream: TStream);

This item has no description.

Public procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); override;

This item has no description.

Public procedure SetSVG(ASVG: TBGRASVG; AContainerWidth: integer = 640; AContainerHeight: integer = 480; AScaleDPI: single = 1);

This item has no description.

Protected procedure BeginUpdate;

This item has no description.

Protected procedure ComputePresentation(AContainerWidth, AContainerHeight: integer; AScaleDPI: single);

This item has no description.

Protected procedure EndUpdate;

This item has no description.

Properties

Public property DPI: single read GetDPI write SetDPI;

This item has no description.

Public property Height: single read GetSvgHeight;

This item has no description.

Public property PresentationMatrix: TAffineMatrix read FPresentationMatrix;

This item has no description.

Public property Width: single read GetSvgWidth;

This item has no description.