Interface IDrawingFactory

Interface IDrawingFactory

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.0)

Represents a factory for creating drawing-related objects.

[ComVisible(true)]
public interface IDrawingFactory : IDisposable

Implements

IDisposable

Methods

CreateInterpolationColor(Color, float)

Creates an interpolation color with the specified color and position.

IInterpolationColor CreateInterpolationColor(Color color, float position)

Parameters

color Color

Represents the color that will be used at the corresponding position of the gradient.

position float

The position, represented as a percentage from 0 to 1, at which the corresponding gradient color will be used.

Returns

IInterpolationColor

The created Aspose.Html.Drawing.IInterpolationColor.

CreateLinearGradientBrush(RectangleF, IInterpolationColor[])

Creates a linear gradient brush with the specified parameters.

ILinearGradientBrush CreateLinearGradientBrush(RectangleF rect, IInterpolationColor[] colors)

Parameters

rect RectangleF

The rectangle defining the gradient bounds.

colors IInterpolationColor[]

The interpolation colors for the gradient. See Aspose.Html.Drawing.IInterpolationColor.

Returns

ILinearGradientBrush

The created Aspose.Html.Drawing.ILinearGradientBrush.

CreateMatrix(IMatrix)

Creates a new matrix with the same contents as the specified matrix.

IMatrix CreateMatrix(IMatrix matrix)

Parameters

matrix IMatrix

The matrix to copy.

Returns

IMatrix

The created Aspose.Html.Drawing.IMatrix.

CreateMatrix(float, float, float, float, float, float)

Creates a new matrix with the specified elements.

IMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)

Parameters

m11 float

The value in the first row and first column of the matrix.

m12 float

The value in the first row and second column of the matrix.

m21 float

The value in the second row and first column of the matrix.

m22 float

The value in the second row and second column of the matrix.

m31 float

The value in the third row and first column of the matrix.

m32 float

The value in the third row and second column of the matrix.

Returns

IMatrix

The created Aspose.Html.Drawing.IMatrix.

CreateMatrix()

Creates a new identity matrix.

IMatrix CreateMatrix()

Returns

IMatrix

The created Aspose.Html.Drawing.IMatrix.

CreateSolidBrush(Color)

Creates a solid brush with the specified color.

ISolidBrush CreateSolidBrush(Color color)

Parameters

color Color

The color of the solid brush.

Returns

ISolidBrush

The created Aspose.Html.Drawing.ISolidBrush.

CreateTextureBrush(byte[])

Creates a texture brush with the specified parameters.

ITextureBrush CreateTextureBrush(byte[] imageBytes)

Parameters

imageBytes byte[]

The byte array containing the image data.

Returns

ITextureBrush

The created Aspose.Html.Drawing.ITextureBrush.