public abstract class LinearGradientBrushBase extends TransformBrush
Represents a Brush
with gradient capabilities and appropriate properties.
Modifier and Type | Method and Description |
---|---|
float |
getAngle()
Gets the gradient angle.
|
boolean |
getGammaCorrection()
Gets a value indicating whether gamma correction is enabled for this
LinearGradientBrushBase . |
RectangleF |
getRectangle()
Gets a rectangular region that defines the starting and ending points of the gradient.
|
boolean |
isAngleScalable()
Gets a value indicating whether
LinearGradientBrushBase.Angle is changed during trasnformations with this LinearGradientBrushBase . |
void |
setAngle(float value)
Sets the gradient angle.
|
void |
setAngleScalable(boolean value)
Sets a value indicating whether
LinearGradientBrushBase.Angle is changed during trasnformations with this LinearGradientBrushBase . |
void |
setGammaCorrection(boolean value)
Sets a value indicating whether gamma correction is enabled for this
LinearGradientBrushBase . |
void |
setRectangle(RectangleF value)
Sets a rectangular region that defines the starting and ending points of the gradient.
|
getTransform, getWrapMode, isTransformChanged, multiplyTransform, multiplyTransform, resetTransform, rotateTransform, rotateTransform, scaleTransform, scaleTransform, setTransform, setWrapMode, translateTransform, translateTransform
deepClone, getOpacity, setOpacity
close, dispose, getDisposed
public RectangleF getRectangle()
Gets a rectangular region that defines the starting and ending points of the gradient.
com.aspose.imaging.RectangleF
structure that specifies the starting and ending points of the gradient.public void setRectangle(RectangleF value)
Sets a rectangular region that defines the starting and ending points of the gradient.
value
- A com.aspose.imaging.RectangleF
structure that specifies the starting and ending points of the gradient.public float getAngle()
Gets the gradient angle.
public void setAngle(float value)
Sets the gradient angle.
value
- The gradient angle.public boolean isAngleScalable()
Gets a value indicating whether LinearGradientBrushBase.Angle
is changed during trasnformations with this LinearGradientBrushBase
.
true
if LinearGradientBrushBase.Angle
is changed during transformations with this LinearGradientBrushBase
; otherwise, false
.public void setAngleScalable(boolean value)
Sets a value indicating whether LinearGradientBrushBase.Angle
is changed during trasnformations with this LinearGradientBrushBase
.
value
- true
if LinearGradientBrushBase.Angle
is changed during transformations with this LinearGradientBrushBase
; otherwise, false
.public boolean getGammaCorrection()
Gets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase
.
LinearGradientBrushBase
; otherwise, false.public void setGammaCorrection(boolean value)
Sets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase
.
value
- The value is true if gamma correction is enabled for this LinearGradientBrushBase
; otherwise, false.