ISVGRenderContext¶
Interface for a rendering context
Unit: BVE.SVG2Intf · Extends: ISVGBitmap
Methods¶
AlphaMask¶
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¶
No description yet.
CheckValid¶
No description yet.
Clear¶
No description yet.
CopyDrawnTo¶
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¶
No description yet.
DrawCmdList¶
No description yet.
DrawEllipse¶
No description yet.
DrawLine¶
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¶
No description yet.
FillCircle¶
No description yet.
FillEllipse¶
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¶
No description yet.
FilterColorMatrix¶
No description yet.
FilterColorMatrixAlphaMask¶
No description yet.
FilterColorMatrixHueRotate¶
No description yet.
FilterColorMatrixLuminanceToAlpha¶
No description yet.
FilterColorMatrixSaturate¶
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¶
No description yet.
FilterGuassianBlur¶
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¶
No description yet.
GetAbsoluteTrans¶
No description yet.
GetBeginSceneCount¶
No description yet.
GetBitmap¶
No description yet.
GetBufferQuality¶
No description yet.
GetColorSpace¶
No description yet.
GetDPI¶
No description yet.
GetGeometryMatrix¶
No description yet.
GetMatrix¶
No description yet.
GetOnBeginScene¶
No description yet.
GetOnEndScene¶
No description yet.
GetPremultiplied¶
No description yet.
GetRasterScale¶
No description yet.
GetRenderContextType¶
No description yet.
GetSupportsBitmapBrush¶
No description yet.
GetSupportsClipRect¶
No description yet.
LuminanceToAlphaMask¶
No description yet.
MultiplyMatrix¶
No description yet.
PopClipRect¶
No description yet.
PushClipRect¶
No description yet.
SetBufferQuality¶
No description yet.
SetGeometryMatrix¶
No description yet.
SetMatrix¶
No description yet.
SetOnBeginScene¶
No description yet.
SetOnEndScene¶
No description yet.
Properties¶
AbsoluteScale¶
No description yet.
AbsoluteTrans¶
No description yet.
BeginSceneCount¶
No description yet.
Bitmap¶
No description yet.
BufferQuality¶
No description yet.
ColorSpace¶
No description yet.
DPI¶
No description yet.
GeometryMatrix¶
No description yet.
Matrix¶
No description yet.
OnBeginScene¶
No description yet.
OnEndScene¶
No description yet.
Premultiplied¶
No description yet.
RasterScale¶
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¶
No description yet.
SupportsBitmapBrush¶
No description yet.
SupportsClipRect¶
No description yet.