Packages

 

com.groupdocs.signature.domain.extensions

Class LinearGradientBrush



  • public class LinearGradientBrush
    extends Brush

    Represents linear gradient brush.

    • Constructor Detail

      • LinearGradientBrush

        public LinearGradientBrush()

        Initializes a new instance of the LinearGradientBrush class with default values.

      • LinearGradientBrush

        public LinearGradientBrush(Color startColor,
                           Color endColor,
                           float angle)

        Initializes a new instance of the LinearGradientBrush class.

        Parameters:
        startColor - Start color.
        endColor - End color.
        angle - Angle. Default value is 0.
    • Method Detail

      • getAngle

        public float getAngle()

        Gets or sets gradient angle.

      • getEndColor

        public Color getEndColor()

        Gets or sets finish gradient color.

      • getStartColor

        public Color getStartColor()

        Gets or sets start gradient color.

      • setAngle

        public void setAngle(float value)

        Gets or sets gradient angle.

      • setEndColor

        public void setEndColor(Color value)

        Gets or sets finish gradient color.

      • setStartColor

        public void setStartColor(Color value)

        Gets or sets start gradient color.