Exemplo n.º 1
0
 /// <summary>
 /// Gets the geometry's bounding rectangle with the specified stroke thickness.
 /// </summary>
 /// <param name="strokeThickness">The stroke thickness.</param>
 /// <returns>The bounding rectangle.</returns>
 public Rect GetRenderBounds(double strokeThickness)
 {
     return(PlatformImpl.GetRenderBounds(strokeThickness));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the geometry's bounding rectangle with the specified pen.
 /// </summary>
 /// <param name="pen">The stroke thickness.</param>
 /// <returns>The bounding rectangle.</returns>
 public Rect GetRenderBounds(Pen pen) => PlatformImpl?.GetRenderBounds(pen) ?? Rect.Empty;