Error processing SSI file
LEADTOOLS Svg (Leadtools.Svg assembly)

Show in webframe

CalculateBounds Method






true to crop the result bounds using the actual object; otherwise, false.
Calculates the physical (pixel) bounds and resolution of this SvgDocument.
Syntax
public void CalculateBounds( 
   bool trimmed
)
'Declaration
 
Public Sub CalculateBounds( _
   ByVal trimmed As Boolean _
) 
'Usage
 
Dim instance As SvgDocument
Dim trimmed As Boolean
 
instance.CalculateBounds(trimmed)
- (BOOL)calculateBounds:(BOOL)trimmed error:(NSError **)error
public void calculateBounds(boolean trimmed)
public:
void CalculateBounds( 
   bool trimmed
) 

Parameters

trimmed
true to crop the result bounds using the actual object; otherwise, false.
Remarks

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

This method will calculate the physical (pixel) bounds of the document by internally enumerating all the elements and resolving the transformation. When this method returns, the members of Bounds will be set as follows:

Member Description
SvgBounds.IsValid

true

SvgBounds.IsTrimmed

The value of trimmed

SvgBounds.Resolution

A value such as 96 or 300 DPI calculated automatically from the SVG elements. If this value cannot be calculated, it will be set to the default of 0.

SvgBounds.Bounds

The document physical boundaries in pixels.

Use Flat and ToFlat to flatten a document in-place or return a flat copy of an SvgDocument.

Use IsFlat to determine whether this SvgDocument is flat. Use SetFlat to set or clear the internal flattening flag without re-calculating the document's bounds.

Example

For an example, refer to SvgDocument.

Requirements

Target Platforms

See Also

Reference

SvgDocument Class
SvgDocument Members

Error processing SSI file
  Leadtools.Svg requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features