PointExtensions

Inheritance: java.lang.Object

public final class PointExtensions

Innehåller utökningsmetoder för Point‑ och PointF‑strukturer.

Metoder

MetodBeskrivning
toPointsArray(Point[] points)Konverterar Point-arrayen till PointF-arrayen.
toGdiPoints(PointF[] points)Konverterar PointF-arrayen till System.Drawing.PointF-arrayen.
toGdiPoint(PointF point)Konverterar PointF till System.Drawing.PointF.

toPointsArray(Point[] points)

public static PointF[] toPointsArray(Point[] points)

Konverterar Point-arrayen till PointF-arrayen.

Parameters:

ParameterTypBeskrivning
pointsPoint[]Point-arrayen att konvertera.

Returns: com.aspose.imaging.PointF[] - Den konverterade PointF-arrayen.

toGdiPoints(PointF[] points)

public static Point2D.Float[] toGdiPoints(PointF[] points)

Konverterar PointF-arrayen till System.Drawing.PointF-arrayen.

Parameters:

ParameterTypBeskrivning
pointsPointF[]PointF-arrayen att konvertera.

Returns: java.awt.geom.Point2D.Float[] - Den konverterade System.Drawing.PointF-arrayen.

toGdiPoint(PointF point)

public static Point2D.Float toGdiPoint(PointF point)

Konverterar PointF till System.Drawing.PointF.

Parameters:

ParameterTypBeskrivning
pointPointFPointF att konvertera.

Returns: java.awt.geom.Point2D.Float - Den konverterade System.Drawing.PointF.