←Select platform

Flat Method

Summary
Flattens this SvgDocument.
Syntax
C#
VB
Objective-C
C++
Java
public void Flat( 
   SvgFlatOptions options 
) 
Public Sub Flat( _ 
   ByVal options As SvgFlatOptions _ 
)  
- (BOOL)flattenWithOptions:(nullable LTSvgFlatOptions *)options 
                     error:(NSError **)error 
public void flat(SvgFlatOptions options) 
public: 
void Flat(  
   SvgFlatOptions^ options 
)  

Parameters

options
The flat options to use. This can be null.

Remarks

For more information about flat SVG documents and bounds and resolution, refer to SVG Size, Bounds and Flat.

If the value of options is null, then this method will use default options as follows:

Member Value
SvgFlatOptions.Size

Leadtools.LeadSizeD.EmptyLeadSizeD.Empty

Use IsFlat to determine whether this SvgDocument is flat. Use SetFlat to set or clear the internal flattening flag manually.

Use CalculateBounds to calculate the physical (pixel) bounds and resolution of this document and Bounds to obtain these values.

This method flattens the document in-place. To obtain a copy of the flat document, use ToFlat.

Example

For an example, refer to SvgDocument.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Svg Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.