Packages

 

com.aspose.psd.brushes

Class TransformBrush

    • Constructor Summary

      Constructors 
      Constructor and Description
      TransformBrush() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Matrix getTransform()
      Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush.
      int getWrapMode()
      Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush.
      boolean isTransformChanged()
      Gets a value indicating whether transformations were changed in some way.
      void multiplyTransform(Matrix matrix)
      Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix by prepending the specified Aspose.Imaging.Matrix.
      void multiplyTransform(Matrix matrix, int order)
      Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix in the specified order.
      void resetTransform()
      Resets the TransformBrush.Transform property to identity.
      void rotateTransform(float angle)
      Rotates the local geometric transform by the specified amount.
      void rotateTransform(float angle, int order)
      Rotates the local geometric transform by the specified amount in the specified order.
      void scaleTransform(float sx, float sy)
      Scales the local geometric transform by the specified amounts.
      void scaleTransform(float sx, float sy, int order)
      Scales the local geometric transform by the specified amounts in the specified order.
      void setTransform(Matrix value)
      Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush.
      void setWrapMode(int value)
      Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush.
      void translateTransform(float dx, float dy)
      Translates the local geometric transform by the specified dimensions.
      void translateTransform(float dx, float dy, int order)
      Translates the local geometric transform by the specified dimensions in the specified order.
    • Constructor Detail

      • TransformBrush

        public TransformBrush()
    • Method Detail

      • getWrapMode

        public int getWrapMode()

        Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush.

        Returns:
        A Aspose.Imaging.WrapMode that specifies how fills drawn with this TransformBrush are tiled.
      • setWrapMode

        public void setWrapMode(int value)

        Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush.

      • getTransform

        public Matrix getTransform()

        Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush.

        Returns:
        A copy of the Aspose.Imaging.Matrix that defines a geometric transform that applies only to fills drawn with this TransformBrush.
      • setTransform

        public void setTransform(Matrix value)

        Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush.

      • isTransformChanged

        public boolean isTransformChanged()

        Gets a value indicating whether transformations were changed in some way. For example setting the transformation matrix or calling any of the methods altering the transformation matrix. The property is introduced for backward compatibility with GDI+.

        Value: True if transformation was changed; otherwise, false.
      • resetTransform

        public void resetTransform()

        Resets the TransformBrush.Transform property to identity.

      • multiplyTransform

        public void multiplyTransform(Matrix matrix)

        Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix by prepending the specified Aspose.Imaging.Matrix.

        Parameters:
        matrix - The Aspose.Imaging.Matrix by which to multiply the geometric transform.
      • multiplyTransform

        public void multiplyTransform(Matrix matrix,
                                      int order)

        Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix in the specified order.

        Parameters:
        matrix - The Aspose.Imaging.Matrix by which to multiply the geometric transform.
        order - A Aspose.Imaging.MatrixOrder that specifies in which order to multiply the two matrices.
      • translateTransform

        public void translateTransform(float dx,
                                       float dy)

        Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform.

        Parameters:
        dx - The value of the translation in x.
        dy - The value of the translation in y.
      • translateTransform

        public void translateTransform(float dx,
                                       float dy,
                                       int order)

        Translates the local geometric transform by the specified dimensions in the specified order.

        Parameters:
        dx - The value of the translation in x.
        dy - The value of the translation in y.
        order - The order (prepend or append) in which to apply the translation.
      • scaleTransform

        public void scaleTransform(float sx,
                                   float sy)

        Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform.

        Parameters:
        sx - The amount by which to scale the transform in the x-axis direction.
        sy - The amount by which to scale the transform in the y-axis direction.
      • scaleTransform

        public void scaleTransform(float sx,
                                   float sy,
                                   int order)

        Scales the local geometric transform by the specified amounts in the specified order.

        Parameters:
        sx - The amount by which to scale the transform in the x-axis direction.
        sy - The amount by which to scale the transform in the y-axis direction.
        order - A Aspose.Imaging.MatrixOrder that specifies whether to append or prepend the scaling matrix.
      • rotateTransform

        public void rotateTransform(float angle)

        Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform.

        Parameters:
        angle - The angle of rotation.
      • rotateTransform

        public void rotateTransform(float angle,
                                    int order)

        Rotates the local geometric transform by the specified amount in the specified order.

        Parameters:
        angle - The angle of rotation.
        order - A Aspose.Imaging.MatrixOrder that specifies whether to append or prepend the rotation matrix.