Skip to content

ISVGRenderContext

Interface for a rendering context

Unit: BVE.SVG2Intf · Extends: ISVGBitmap

Methods

AlphaMask

procedure AlphaMask(aMask: ISVGBuffer);

No description yet.

ApplyFill

procedure ApplyFill(
  const aFill: ISVGBrush;
  const aFillOpacity: TSVGFloat = 1.0;
  const aOpacity: TSVGFloat = 1.0;
  const aFillRule: TSVGFillRule = TSVGFillRule.frNonZero);

No description yet.

ApplyStroke

procedure ApplyStroke(
  const aStroke: ISVGBrush;
  const aStrokeThickness: TSVGFloat;
  const aStrokeOpacity, aOpacity: TSVGFloat;
  const aStrokeCap: TSVGStrokeCap;
  const aStrokeJoin: TSVGStrokeJoin;
  const aStrokeMiterLimit: TSVGFloat;
  const aDashArray: TSVGDimArray;
  const aDashOffset: TSVGFloat); overload;

procedure ApplyStroke(
  const aStroke: ISVGBrush;
  const aStrokeThickness: TSVGFloat;
  const aStrokeOpacity: TSVGFloat = 1.0;
  const aOpacity: TSVGFloat = 1.0;
  const aStrokeCap: TSVGStrokeCap = TSVGStrokeCap.scButt;
  const aStrokeJoin: TSVGStrokeJoin = TSVGStrokeJoin.sjMiter;
  const aStrokeMiterLimit: TSVGFloat = 4.0); overload;

No description yet.

BeginScene

function BeginScene: Boolean;

No description yet.

CheckValid

function CheckValid: boolean;

No description yet.

Clear

procedure Clear(const aColor: TSVGColor);

No description yet.

CopyDrawnTo

function CopyDrawnTo(aDest: ISVGBitmap; const aSrceRect: TSVGRect): Boolean;

Copies what has been drawn so far in aSrceRect, in pixels of the context, to the top left of aDest. Works while a scene is open, which is what mix-blend-mode needs to read what is behind an element.

Returns: False when the context has no pixels that can be read: GDI+ on a device context, print pages, EMF.

CreateBitmap

function CreateBitmap(const aWidth, aHeight: integer): ISVGBitmap; overload;

function CreateBitmap(
  const aWidth, aHeight: integer;
  const aColorSpace: TSVGColorSpace;
  const aPremultiplied: Boolean): ISVGBitmap; overload;

function CreateBitmap(
  const aWidth, aHeight, aStride, aBufferSize: integer;
  aBuffer: Pointer): ISVGBitmap; overload;

function CreateBitmap(
  const aWidth, aHeight, aStride, aBufferSize: integer;
  aBuffer: Pointer;
  const aColorSpace: TSVGColorSpace;
  const aPremultiplied: Boolean): ISVGBitmap; overload;

No description yet.

CreateRenderContext

function CreateRenderContext(
  const aWidth;
  aHeight: integer): ISVGRenderContext; overload;

function CreateRenderContext(
  const aWidth, aHeight: integer;
  const aColorSpace: TSVGColorSpace;
  const aPremultiplied: Boolean): ISVGRenderContext; overload;

function CreateRenderContext(
  aStream: TStream;
  const aMimeType: TSVGMimeType): ISVGRenderContext; overload;

No description yet.

DrawCircle

procedure DrawCircle(const aCX, aCY, aR: TSVGFloat);

No description yet.

DrawCmdList

procedure DrawCmdList(
  aCmdList: ISVGRenderContextCmdList;
  const aDestRect: TSVGRect);

No description yet.

DrawEllipse

procedure DrawEllipse(const aCX, aCY, aRX, aRY: TSVGFloat);

No description yet.

DrawLine

procedure DrawLine(const aX1, aY1, aX2, aY2: TSVGFloat);

No description yet.

DrawPath

procedure DrawPath(aSVGPathData: ISVGPathData); overload;

procedure DrawPath(aSVGPathDataList: ISVGPathDataList); overload;

No description yet.

DrawRect

procedure DrawRect(const ARect: TSVGRect); overload;

procedure DrawRect(
  const ARect: TSVGRect;
  const XRadius, YRadius: TSVGFloat); overload;

No description yet.

EndScene

procedure EndScene;

No description yet.

FillCircle

procedure FillCircle(const aCX, aCY, aR: TSVGFloat);

No description yet.

FillEllipse

procedure FillEllipse(const aCX, aCY, aRX, aRY: TSVGFloat);

No description yet.

FillPath

procedure FillPath(aSVGPathData: ISVGPathData); overload;

procedure FillPath(aSVGPathDataList: ISVGPathDataList); overload;

No description yet.

FillRect

procedure FillRect(const ARect: TSVGRect); overload;

procedure FillRect(
  const ARect: TSVGRect;
  const XRadius, YRadius: TSVGFloat); overload;

No description yet.

FilterBlend

function FilterBlend(
  aIn1, aIn2, aOut: ISVGBuffer;
  const aBlendMode: TSVGBlendMode): boolean;

No description yet.

FilterColorMatrix

function FilterColorMatrix(
  aIn, aOut: ISVGBuffer;
  const aColorMatrix: TSVGNumberArray): boolean;

No description yet.

FilterColorMatrixAlphaMask

function FilterColorMatrixAlphaMask(aIn, aOut: ISVGBuffer): boolean;

No description yet.

FilterColorMatrixHueRotate

function FilterColorMatrixHueRotate(
  aIn, aOut: ISVGBuffer;
  const aHueRotate: TSVGFloat): boolean;

No description yet.

FilterColorMatrixLuminanceToAlpha

function FilterColorMatrixLuminanceToAlpha(aIn, aOut: ISVGBuffer): boolean;

No description yet.

FilterColorMatrixSaturate

function FilterColorMatrixSaturate(
  aIn, aOut: ISVGBuffer;
  const aSaturation: TSVGFloat): boolean;

No description yet.

FilterComponentTransfer

function FilterComponentTransfer(
  aIn, aOut: ISVGBuffer;
  const aFuncR: TSVGFilterFunctionType;
  const aTableR: TSVGNumberArray;
  const aSlopeR, aInterceptR, aAmplitudeR, aExponentR, aOffsetR: TSVGFloat;
  const aFuncG: TSVGFilterFunctionType;
  const aTableG: TSVGNumberArray;
  const aSlopeG, aInterceptG, aAmplitudeG, aExponentG, aOffsetG: TSVGFloat;
  const aFuncB: TSVGFilterFunctionType;
  const aTableB: TSVGNumberArray;
  const aSlopeB, aInterceptB, aAmplitudeB, aExponentB, aOffsetB: TSVGFloat;
  const aFuncA: TSVGFilterFunctionType;
  const aTableA: TSVGNumberArray;
  const aSlopeA, aInterceptA, aAmplitudeA, aExponentA, aOffsetA: TSVGFloat): boolean;

No description yet.

FilterComposite

function FilterComposite(
  aIn1, aIn2, aOut: ISVGBuffer;
  const aOperator: TSVGCompositeOperator;
  const aK1, aK2, aK3, aK4: TSVGFloat): boolean;

No description yet.

FilterConvert

function FilterConvert(
  aBuffer: ISVGBuffer;
  const aColorSpace: TSVGColorSpace;
  const aPremultiplied: boolean): boolean;

No description yet.

FilterConvolveMatrix

function FilterConvolveMatrix(
  aIn, aOut: ISVGBuffer;
  const aKernelSizeX, aKernelSizeY: integer;
  const aKernelMatrix: TSVGNumberArray;
  const aDivisor, aBias: TSVGFloat;
  const aOffset: TSVGPoint;
  const aEdgeMode: TSVGEdgeMode;
  const aPreserveAlpha: boolean): boolean;

No description yet.

FilterDisplacementMap

function FilterDisplacementMap(
  aIn1, aIn2, aOut: ISVGBuffer;
  const aScale: TSVGFloat;
  const aXChannelSelect, aYChannelSelect: TSVGColorCOmponent): boolean;

No description yet.

FilterDistantDiffuseLighting

function FilterDistantDiffuseLighting(
  aIn, aOut: ISVGBuffer;
  const aSurfaceScale, aDiffuseConstant, aAzimuth, aElevation: TSVGFLoat;
  const aColor: TSVGColor): boolean;

No description yet.

FilterDistantSpecularLighting

function FilterDistantSpecularLighting(
  aIn, aOut: ISVGBuffer;
  const aSurfaceScale, aSpecularConstant, aSpecularExponent, aAzimuth, aElevation: TSVGFLoat;
  const aColor: TSVGColor): boolean;

No description yet.

FilterFlood

function FilterFlood(
  const aOut: ISVGBuffer;
  const aColor: TSVGColor): boolean;

No description yet.

FilterGuassianBlur

function FilterGuassianBlur(
  aIn, aOut: ISVGBuffer;
  const aRadiusX, aRadiusY: TSVGFLoat): boolean;

No description yet.

FilterMorphology

function FilterMorphology(
  aIn, aOut: ISVGBuffer;
  const aMode: TSVGMorphologyOperator;
  aWidth, aheight: integer): boolean;

No description yet.

FilterPointDiffuseLighting

function FilterPointDiffuseLighting(
  aIn, aOut: ISVGBuffer;
  const aSurfaceScale, aDiffuseConstant: TSVGFLoat;
  const aLightPosition: TSVGPoint3D;
  const aColor: TSVGColor): boolean;

No description yet.

FilterPointSpecularLighting

function FilterPointSpecularLighting(
  aIn, aOut: ISVGBuffer;
  const aSurfaceScale, aSpecularConstant, aSpecularExponent: TSVGFLoat;
  const aLightPosition: TSVGPoint3D;
  const aColor: TSVGColor): boolean;

No description yet.

FilterSpotDiffuseLighting

function FilterSpotDiffuseLighting(
  aIn, aOut: ISVGBuffer;
  const aSurfaceScale, aDiffuseConstant: TSVGFLoat;
  const aLightPosition, aPointsAt: TSVGPoint3D;
  const aFocus, aLimitingConeAngle: TSVGFloat;
  const aColor: TSVGColor): boolean;

No description yet.

FilterSpotSpecularLighting

function FilterSpotSpecularLighting(
  aIn, aOut: ISVGBuffer;
  const aSurfaceScale, aSpecularConstant, aSpecularExponent: TSVGFLoat;
  const aLightPosition, aPointsAt: TSVGPoint3D;
  const aFocus, aLimitingConeAngle: TSVGFloat;
  const aColor: TSVGColor): boolean;

No description yet.

FilterTurbulence

function FilterTurbulence(
  aOut: ISVGBuffer;
  const aSubRegion: TSVGRect;
  const aBaseFrequency: TSVGPoint;
  const aNumOctaves, aSeed: integer;
  const aNoise, aStitchable: boolean;
  const aMatrix: TSVGMatrix): boolean;

No description yet.

GetAbsoluteScale

function GetAbsoluteScale: TSVGPoint;

No description yet.

GetAbsoluteTrans

function GetAbsoluteTrans: TSVGPoint;

No description yet.

GetBeginSceneCount

function GetBeginSceneCount: Integer;

No description yet.

GetBitmap

function GetBitmap: ISVGBitmap;

No description yet.

GetBufferQuality

function GetBufferQuality: TSVGBufferQuality;

No description yet.

GetColorSpace

function GetColorSpace: TSVGColorSpace;

No description yet.

GetDPI

function GetDPI: TSVGPoint;

No description yet.

GetGeometryMatrix

function GetGeometryMatrix: TSVGMatrix;

No description yet.

GetMatrix

function GetMatrix: TSVGMatrix;

No description yet.

GetOnBeginScene

function GetOnBeginScene: TNotifyEvent;

No description yet.

GetOnEndScene

function GetOnEndScene: TNotifyEvent;

No description yet.

GetPremultiplied

function GetPremultiplied: boolean;

No description yet.

GetRasterScale

function GetRasterScale: TSVGFloat;

No description yet.

GetRenderContextType

function GetRenderContextType: TSVGRenderContextType;

No description yet.

GetSupportsBitmapBrush

function GetSupportsBitmapBrush: boolean;

No description yet.

GetSupportsClipRect

function GetSupportsClipRect: boolean;

No description yet.

LuminanceToAlphaMask

procedure LuminanceToAlphaMask(
  aDest, aMask: ISVGBuffer;
  const aColorSpace: TSVGColorSpace);

No description yet.

MultiplyMatrix

procedure MultiplyMatrix(aMatrix: TSVGMatrix);

No description yet.

PopClipRect

procedure PopClipRect;

No description yet.

PushClipRect

procedure PushClipRect(const aRect: TSVGRect);

No description yet.

SetBufferQuality

procedure SetBufferQuality(const aValue: TSVGBufferQuality);

No description yet.

SetGeometryMatrix

procedure SetGeometryMatrix(const aMatrix: TSVGMatrix);

No description yet.

SetMatrix

procedure SetMatrix(const aMatrix: TSVGMatrix);

No description yet.

SetOnBeginScene

procedure SetOnBeginScene(const Value: TNotifyEvent);

No description yet.

SetOnEndScene

procedure SetOnEndScene(const Value: TNotifyEvent);

No description yet.

Properties

AbsoluteScale

property AbsoluteScale: TSVGPoint read GetAbsoluteScale;

No description yet.

AbsoluteTrans

property AbsoluteTrans: TSVGPoint read GetAbsoluteTrans;

No description yet.

BeginSceneCount

property BeginSceneCount: Integer read GetBeginSceneCount;

No description yet.

Bitmap

property Bitmap: ISVGBitmap read GetBitmap;

No description yet.

BufferQuality

property BufferQuality: TSVGBufferQuality read GetBufferQuality write SetBufferQuality;

No description yet.

ColorSpace

property ColorSpace: TSVGColorSpace read GetColorSpace;

No description yet.

DPI

property DPI: TSVGPoint read GetDPI;

No description yet.

GeometryMatrix

property GeometryMatrix: TSVGMatrix read GetGeometryMatrix write SetGeometryMatrix;

No description yet.

Matrix

property Matrix: TSVGMatrix read GetMatrix write SetMatrix;

No description yet.

OnBeginScene

property OnBeginScene: TNotifyEvent read GetOnBeginScene write SetOnBeginScene;

No description yet.

OnEndScene

property OnEndScene: TNotifyEvent read GetOnEndScene write SetOnEndScene;

No description yet.

Premultiplied

property Premultiplied: boolean read GetPremultiplied;

No description yet.

RasterScale

property RasterScale: TSVGFloat read GetRasterScale;

Device pixels per unit of the context, for the offscreen buffers drawn onto it: filters, masks, clip paths, group opacity. 1 except on a print page, which works in 1/96 inch and prints at the printer's resolution.

RenderContextType

property RenderContextType: TSVGRenderContextType read GetRenderContextType;

No description yet.

SupportsBitmapBrush

property SupportsBitmapBrush: boolean read GetSupportsBitmapBrush;

No description yet.

SupportsClipRect

property SupportsClipRect: boolean read GetSupportsClipRect;

No description yet.