Interface IDrawingFactory
Tên không gian: Aspose.Html.Drawing Tổng hợp: Aspose.HTML.dll (25.4.0)
Nó đại diện cho một nhà máy để tạo ra các đối tượng liên quan đến vẽ.
[ComVisible(true)]
public interface IDrawingFactory : IDisposable
Implements
Methods
CreateInterpolationColor(Màu sắc, float)
Tạo một màu interpolation với màu và vị trí cụ thể.
IInterpolationColor CreateInterpolationColor(Color color, float position)
Parameters
color
Color
Nó đại diện cho màu sắc sẽ được sử dụng ở vị trí tương ứng của gradient.
position
float
Vị trí, được đại diện như một tỷ lệ từ 0 đến 1, trong đó màu gradient tương ứng sẽ được sử dụng.
Returns
Tạo Aspose.Html.Drawing.IInterpolationColor.
CreateLinearGradientBrush(RectangleF, IInterpolation Màu sắc[])
Tạo một nén gradient linear với các thông số được chỉ định.
ILinearGradientBrush CreateLinearGradientBrush(RectangleF rect, IInterpolationColor[] colors)
Parameters
rect
RectangleF
Tương tự định nghĩa ranh giới gradient.
colors
IInterpolationColor
[ ]
Màu sắc interpolation cho gradient. Xem Aspose.Html.Drawing.IInterpolationColor.
Returns
Tạo Aspose.Html.Drawing.ILinearGradientBrush.
CreateMatrix(IMATRIX)
Tạo một matrix mới với cùng nội dung như matrix cụ thể.
IMatrix CreateMatrix(IMatrix matrix)
Parameters
matrix
IMatrix
Matrix để sao chép.
Returns
Tạo ra Aspose.Html.Drawing.IMatrix.
CreateMatrix(Hải quân, Hải quân, Hải quân, Hải quân, Hải quân)
Tạo một matrix mới với các yếu tố cụ thể.
IMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)
Parameters
m11
float
Giá trị trong hàng đầu và cột đầu tiên của matrix.
m12
float
Giá trị trong hàng đầu và cột thứ hai của matrix.
m21
float
Giá trị trong hàng thứ hai và cột đầu tiên của matrix.
m22
float
Giá trị trong hàng thứ hai và cột thứ hai của matrix.
m31
float
Giá trị trong hàng thứ ba và cột đầu tiên của matrix.
m32
float
Giá trị trong hàng thứ ba và cột thứ hai của matrix.
Returns
Tạo ra Aspose.Html.Drawing.IMatrix.
CreateMatrix()
Tạo ra một bản đồ bản sắc mới.
IMatrix CreateMatrix()
Returns
Tạo ra Aspose.Html.Drawing.IMatrix.
CreateSolidBrush(Color)
Tạo một nếp nhăn vững chắc với màu cụ thể.
ISolidBrush CreateSolidBrush(Color color)
Parameters
color
Color
Màu sắc của khăn cứng.
Returns
Tạo Aspose.Html.Drawing.ISolidBrush
CreateTextureBrush(byte[])
Tạo một bút chì kết cấu với các thông số cụ thể.
ITextureBrush CreateTextureBrush(byte[] imageBytes)
Parameters
imageBytes
byte
[ ]
Các byte array chứa dữ liệu hình ảnh.
Returns
Tạo Aspose.Html.Drawing.ITextureBrush.