IGeometryImpl Interface

Defines the platform-specific interface for a Geometry.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
[UnstableAttribute]
public interface IGeometryImpl

Properties

Bounds Gets the geometry's bounding rectangle.
ContourLength Gets the geometry's total length as if all its contours are placed in a straight line.

Methods

FillContains(Point) Indicates whether the geometry's fill contains the specified point.
GetRenderBounds(IPen) Gets the geometry's bounding rectangle with the specified pen.
GetWidenedGeometry(IPen) Gets a geometry that is the shape defined by the stroke on the geometry produced by the specified Pen.
Intersect(IGeometryImpl) Intersects the geometry with another geometry.
StrokeContains(IPen, Point) Indicates whether the geometry's stroke contains the specified point.
TryGetPointAndTangentAtDistance(Double, Point, Point) Attempts to get the corresponding point and tangent from the specified distance along the contour of the geometry.
TryGetPointAtDistance(Double, Point) Attempts to get the corresponding point at the specified distance
TryGetSegment(Double, Double, Boolean, IGeometryImpl) Attempts to get the corresponding path segment given by the two distances specified. Imagine it like snipping a part of the current geometry.
WithTransform(Matrix) Makes a clone of the geometry with the specified transform.

See Also