Calculates the physical (pixel) bounds and resolution of this SvgDocument.
public void CalculateBounds(
Public Sub CalculateBounds( _
ByVal trimmed As Boolean _
- (BOOL)calculateBounds:(BOOL)trimmed error:(NSError **)error
public void calculateBounds(boolean trimmed)
true to crop the result bounds using the actual object; otherwise, false.
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:
The value of trimmed
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.
The document physical boundaries in pixels.
For an example, refer to SvgDocument.