←Select platform

ToFlat Method

Summary

Gets a flat version of this SvgDocument.

Syntax
C#
VB
Objective-C
C++
Java
Public Function ToFlat( _ 
   ByVal options As SvgFlatOptions _ 
) As SvgDocument 
- (nullable instancetype)flatCopyWithOptions:(nullable LTSvgFlatOptions *)options 
                                       error:(NSError **)error 
public SvgDocument toFlat(SvgFlatOptions options) 

Parameters

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

Return Value

The flat version of this document.

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 returns a copy of the document. To flat an SvgDocument in place, use Flat.

Requirements

Target Platforms

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

Leadtools.Svg Assembly