Packages

 

com.aspose.imaging.brushes

Class LinearGradientBrushBase

    • Method Detail

      • getRectangle

        public RectangleF getRectangle()

        Gets a rectangular region that defines the starting and ending points of the gradient.

        Returns:
        A com.aspose.imaging.RectangleF structure that specifies the starting and ending points of the gradient.
      • setRectangle

        public void setRectangle(RectangleF value)

        Sets a rectangular region that defines the starting and ending points of the gradient.

        Parameters:
        value - A com.aspose.imaging.RectangleF structure that specifies the starting and ending points of the gradient.
      • getAngle

        public float getAngle()

        Gets the gradient angle.

        Returns:
        The gradient angle.
      • setAngle

        public void setAngle(float value)

        Sets the gradient angle.

        Parameters:
        value - The gradient angle.
      • isAngleScalable

        public boolean isAngleScalable()

        Gets a value indicating whether LinearGradientBrushBase.Angle is changed during trasnformations with this LinearGradientBrushBase.

        Returns:
        true if LinearGradientBrushBase.Angle is changed during transformations with this LinearGradientBrushBase; otherwise, false.
      • setAngleScalable

        public void setAngleScalable(boolean value)

        Sets a value indicating whether LinearGradientBrushBase.Angle is changed during trasnformations with this LinearGradientBrushBase.

        Parameters:
        value - true if LinearGradientBrushBase.Angle is changed during transformations with this LinearGradientBrushBase; otherwise, false.
      • getGammaCorrection

        public boolean getGammaCorrection()

        Gets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase.

        Returns:
        The value is true if gamma correction is enabled for this LinearGradientBrushBase; otherwise, false.
      • setGammaCorrection

        public void setGammaCorrection(boolean value)

        Sets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase.

        Parameters:
        value - The value is true if gamma correction is enabled for this LinearGradientBrushBase; otherwise, false.