[]
Calculates the content bounds of an SVG document when its viewport is drawn at a specified point.
public RectangleF Measure(PointF viewportPosition, float graphicsResolution = 96)
Public Function Measure(viewportPosition As PointF, Optional graphicsResolution As Single = 96) As RectangleF
| Type | Name | Description |
|---|---|---|
| PointF | viewportPosition | The coordinates for the top-left corner of the SVG viewport. |
| float | graphicsResolution | The graphics resolution (pixels per inch). |
| Type | Description |
|---|---|
| RectangleF | The content bounds of the resulting image. |
Calculates the content bounds of an SVG document, resizing the SVG viewport to fit into a specified rectangle.
public RectangleF Measure(RectangleF viewportRect)
Public Function Measure(viewportRect As RectangleF) As RectangleF
| Type | Name | Description |
|---|---|---|
| RectangleF | viewportRect | The target rectangle for the SVG viewport. |
| Type | Description |
|---|---|
| RectangleF | The content bounds of the resulting image. |