Interface IDrawingFactory
ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.5.0)
แสดงโรงงานเพื่อสร้างวัตถุที่เกี่ยวข้องกับวาด
[ComVisible(true)]
public interface IDrawingFactory : IDisposableImplements
Methods
CreateInterpolationColor(สี, float)
สร้างสี interpolation กับสีและตําแหน่งที่ระบุ
IInterpolationColor CreateInterpolationColor(Color color, float position)Parameters
color Color
แสดงให้เห็นถึงสีที่จะใช้ในตําแหน่งที่เหมาะสมของ gradient
position float
ตําแหน่งที่แสดงเป็นอัตราส่วนจาก 0 ถึง 1 ซึ่งจะใช้สี gradient ที่เกี่ยวข้อง
Returns
การสร้าง Aspose.Html.Drawing.IInterpolationColor
CreateLinearGradientBrush(RectangleF, IInterpolationสี[])
สร้างแปรง gradient linear กับพารามิเตอร์ที่ระบุ
ILinearGradientBrush CreateLinearGradientBrush(RectangleF rect, IInterpolationColor[] colors)Parameters
rect RectangleF
ตรงที่กําหนดข้อ จํากัด gradient
colors IInterpolationColor
[ ]
สี interpolation สําหรับ gradient ดู Aspose.Html.Drawing.IInterpolationColor
Returns
การสร้าง Aspose.Html.Drawing.ILinearGradientBrush
CreateMatrix(อมตริกซ์)
สร้าง matrice ใหม่ที่มีเนื้อหาเดียวกันกับ matrice ที่ระบุไว้
IMatrix CreateMatrix(IMatrix matrix)Parameters
matrix IMatrix
Matrix เพื่อคัดลอก
Returns
การสร้าง Aspose.Html.Drawing.IMatrix
CreateMatrix(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)
สร้าง matrice ใหม่ที่มีองค์ประกอบที่ระบุ
IMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)Parameters
m11 float
หมายเลขในแถวแรกและคอลัมน์แรกของแม่พิมพ์
m12 float
หมายเลขในแถวแรกและแถวที่สองของเมตริกซ์
m21 float
หมายเลขในแถวที่สองและคอลัมน์แรกของเมตริกซ์
m22 float
หมายเลขในแถวที่สองและแถวที่สองของแม่พิมพ์
m31 float
หมายเลขในแถวที่สามและคอลัมน์แรกของเมตริกซ์
m32 float
หมายเลขในแถวที่สามและคอลัมน์ที่สองของแม่พิมพ์
Returns
การสร้าง Aspose.Html.Drawing.IMatrix
CreateMatrix()
สร้าง matrice identity ใหม่
IMatrix CreateMatrix()Returns
การสร้าง Aspose.Html.Drawing.IMatrix
CreateSolidBrush(Color)
สร้างแปรงแข็งที่มีสีที่ระบุ
ISolidBrush CreateSolidBrush(Color color)Parameters
color Color
สีของแปรงแข็ง
Returns
การสร้าง Aspose.Html.Drawing.ISolidBrush
CreateTextureBrush(บิต[])
สร้างแปรงเนื้อเยื่อด้วยพารามิเตอร์ที่ระบุ
ITextureBrush CreateTextureBrush(byte[] imageBytes)Parameters
imageBytes byte
[ ]
อาร์เรย์ไบต์ที่มีข้อมูลภาพ
Returns
การสร้าง Aspose.Html.Drawing.ITextureBrush