com.aspose.page

Class TransformedStroke

  • All Implemented Interfaces:
    Stroke


    public class TransformedStroke
    extends Object
    implements Stroke

    A stroke that contains transformation.

    • Constructor Detail

      • TransformedStroke

        public TransformedStroke(Stroke base,
                                 AffineTransform at)

        Creates a TransformedStroke based on another Stroke and an AffineTransform.

        Parameters:
        base - The stroke base.
        at - The affine transformation.
    • Method Detail

      • getTransform

        public AffineTransform getTransform()

        Gets a transformation.

        Returns:
        A transformation.
      • createStrokedShape

        public Shape createStrokedShape(Shape s)

        Strokes the given Shape with this stroke, creating an outline. This outline is distorted by our AffineTransform relative to the outline which would be given by the base stroke, but only in terms of scaling (i.e. thickness of the lines), as translation and rotation are undone after the stroking.

        Specified by:
        createStrokedShape in interface Stroke
        Parameters:
        s - As shape to be outlined.
        Returns:
        An outline of the shape.
      • getBaseStroke

        public Stroke getBaseStroke()

        Gets basic stroke.

        Returns:
        Basic stroke.