L_SvgRenderOptions

struct L_SvgRenderOptions 
{ 
   L_UINT StructSize; 
   L_BOOL UseBackgroundColor; // Use the background color. 
   L_COLORREF BackgroundColor; // Color to fill the background of the SVG. Only used when UseBackgroundColor is true and Bounds is not empty or has zero width or 
   height 
   L_RECTD Bounds; // Bounds of the SVG. Only used when UseBackgroundColor is true. Use the same value from L_SvgGetBounds 
   L_RECTD ClipBounds; 
   L_MATRIX Transform; 
}; 
typedef struct L_SvgRenderOptions L_SvgRenderOptions; 

The L_SvgRenderOptions structure provides options for rendering an SVG document to a target device.

Member

Description

StructSize Size of this structure. Use sizeof (L_SvgRenderOptions).
UseBackgroundColor TRUE to use BackgroundColor color to fill the background of the transformed destination rectangle; otherwise, FALSE.
BackgroundColor The color used to the fill the background of the transformed destination rectangle. Default value is "white".
SVG document do not have a background color. Use this property to fill Bounds (final transformation applied) with a color. Will only be used if UseBackgroundColor is TRUE.
Bounds The destination rectangle in pixel coordinates. Default value is 0, 0.
The SVG document will be rendered to fit and center inside this rectangle. Transform will be applied to this rectangle.
If the value of Bounds has 0 width and height, then the current physical bounds of document (stored in Bounds) will be used.
ClipBounds The clipping rectangle in pixel coordinates. Default value is 0, 0. The engine will apply this clipping into Bounds to exclude all or parts of the objects that do not fit. The transformation set in Transform will not be applied to this rectangle. If this value has 0 width and height then the whole document will be rendered and no clipping performed.
Transform The transformation to be applied when rendering the document. Default value is Identity.
This is an L_MATRIX structure that you can use to apply zooming, translation and rotation to the final document. The value of Transform will be applied to Bounds to calculate the final destination rectangle in pixels.

Comments

Options for rendering an SVG document to a target device.

Used with L_SvgRenderDocument to specify options for rendering an SVG document to a target device.

For more information on rendering SVG documents, refer to SVG Rendering.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS SVG C API Help