LinearGradientBrushBase
Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.Brush, com.aspose.imaging.brushes.TransformBrush
public abstract class LinearGradientBrushBase extends TransformBrush
Represents a Brush with gradient capabilities and appropriate properties.
Methods
| Method | Description |
|---|---|
| getRectangle() | Gets a rectangular region that defines the starting and ending points of the gradient. |
| setRectangle(RectangleF value) | Sets a rectangular region that defines the starting and ending points of the gradient. |
| getAngle() | Gets the gradient angle. |
| setAngle(float value) | Sets the gradient angle. |
| isAngleScalable() | Gets a value indicating whether LinearGradientBrushBase.Angle is changed during transformations with this LinearGradientBrushBase. |
| setAngleScalable(boolean value) | Sets a value indicating whether LinearGradientBrushBase.Angle is changed during transformations with this LinearGradientBrushBase. |
| getGammaCorrection() | Gets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase. |
| setGammaCorrection(boolean value) | Sets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase. |
getRectangle()
public RectangleF getRectangle()
Gets a rectangular region that defines the starting and ending points of the gradient.
Returns:
RectangleF - A com.aspose.imaging.RectangleF structure that specifies the starting and ending points of the gradient.
setRectangle(RectangleF value)
public void setRectangle(RectangleF value)
Sets a rectangular region that defines the starting and ending points of the gradient.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | RectangleF | 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: float - The gradient angle.
setAngle(float value)
public void setAngle(float value)
Sets the gradient angle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The gradient angle. |
isAngleScalable()
public boolean isAngleScalable()
Gets a value indicating whether LinearGradientBrushBase.Angle is changed during transformations with this LinearGradientBrushBase.
Returns:
boolean - true if LinearGradientBrushBase.Angle is changed during transformations with this LinearGradientBrushBase; otherwise, false.
setAngleScalable(boolean value)
public void setAngleScalable(boolean value)
Sets a value indicating whether LinearGradientBrushBase.Angle is changed during transformations with this LinearGradientBrushBase.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | 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:
boolean - The value is true if gamma correction is enabled for this LinearGradientBrushBase; otherwise, false.
setGammaCorrection(boolean value)
public void setGammaCorrection(boolean value)
Sets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | The value is true if gamma correction is enabled for this LinearGradientBrushBase; otherwise, false. |