Packages

 

com.aspose.imaging.shapesegments

Class LineSegment

  • Direct Known Subclasses:
    BezierSegment


    public class LineSegment
    extends ShapeSegment

    Represents a segment leading derectly from a specific point to the next point.

    • Constructor Detail

      • LineSegment

        public LineSegment(PointF startPoint,
                           PointF endPoint)

        Initializes a new instance of the LineSegment class.

        Parameters:
        startPoint - The start point.
        endPoint - The end point.
    • Method Detail

      • getStartPoint

        public PointF getStartPoint()

        Gets the starting point.

        Value: The starting point.
        Specified by:
        getStartPoint in class ShapeSegment
        Returns:
        The starting point.
      • getEndPoint

        public PointF getEndPoint()

        Gets the ending point.

        Value: The ending point.
        Specified by:
        getEndPoint in class ShapeSegment
        Returns:
        The ending point.