Class GradientBrush
Namespace: Aspose.Page.EPS
Assembly: Aspose.Page.dll (25.1.2)
This class is used for encapsulating LinearGradientBrush and PathGradientBrush with possibility to set wrap mode to clamp. Native gradient brushes always throw an exception when someone tries to set WrapMode property to WrapMode.Clamp.
public class GradientBrush : Brush, ICloneable, IDisposable
Inheritance
object ← MarshalByRefObject ← Brush ← GradientBrush
Implements
Inherited Members
Brush.Clone(), Brush.SetNativeBrush(nint), Brush.Dispose(), Brush.Dispose(bool), MarshalByRefObject.GetLifetimeService(), MarshalByRefObject.InitializeLifetimeService(), MarshalByRefObject.MemberwiseClone(bool), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
GradientBrush(Brush)
Creates new instance of GradientBrush.
LinearGradientBrush or PathGradientBrush. If other than ArgumentException will be thrown.public GradientBrush(Brush nativeBrush)
Parameters
nativeBrush
Brush
Properties
Bounds
Returns or specifies bounds for this gradient brushes.
public RectangleF Bounds { get; set; }
Property Value
NativeBrush
Returns native gradient brush.
public Brush NativeBrush { get; }
Property Value
WrapMode
Returns or specifies wrap mode for this gradient brush. It can be WrapMode.Clamp, that results in throwing exception in native gradient brushes.
public WrapMode WrapMode { get; set; }
Property Value
Methods
Clone()
Clones this brush.
public override object Clone()
Returns
Dispose()
Releases all resources used by this Aspose.Page.EPS.GradientBrush object.
public void Dispose()