Class GradientBrush

Class GradientBrush

Tên không gian: Aspose.Page.EPS Tổng hợp: Aspose.Page.dll (25.4.0)

Khóa học này được sử dụng để kết hợp LinearGradientBrush và PathGradientBrush với khả năng thiết lập chế độ nhúng để nhấp.Native gradient brush luôn ném một ngoại lệ khi ai đó cố gắng để thiết lập thuộc tính WrapMode cho WrapMode.Clamp.

public class GradientBrush : Brush, ICloneable, IDisposable

Inheritance

object MarshalByRefObject Brush GradientBrush

Implements

ICloneable , IDisposable

Thành viên thừa kế

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)

Tạo ra một trường hợp mới của GradientBrush.

LinearGradientBrush hoặc PathGradientBrush. nếu không có ArgumentException sẽ bị ném.

public GradientBrush(Brush nativeBrush)

Parameters

nativeBrush Brush

Properties

Bounds

Quay trở lại hoặc xác định giới hạn cho máy nén gradient này.

public RectangleF Bounds { get; set; }

Giá trị bất động sản

RectangleF

NativeBrush

Trở lại native gradient brush.

public Brush NativeBrush { get; }

Giá trị bất động sản

Brush

WrapMode

Quay trở lại hoặc xác định chế độ nén cho nén gradient này. nó có thể là WrapMode.Clamp, dẫn đến việc ném ngoại lệ trong nén gradient bản địa.

public WrapMode WrapMode { get; set; }

Giá trị bất động sản

WrapMode

Methods

Clone()

Clone cái nén này.

public override object Clone()

Returns

object

Dispose()

Tải về tất cả các tài nguyên được sử dụng bởi đối tượng Aspose.Page.EPS.GradientBrush này.

public void Dispose()
 Tiếng Việt