Skip to content

Commit 3f29760

Browse files
Prepared Aspose.HTML for Python via .NET 24.9 api reference
1 parent 883d59e commit 3f29760

File tree

38 files changed

+1314
-0
lines changed

38 files changed

+1314
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: IDrawingFactory class
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 70
7+
url: /python-net/aspose.html.drawing/idrawingfactory/
8+
is_root: false
9+
---
10+
11+
## IDrawingFactory class
12+
13+
Represents a factory for creating drawing-related objects.
14+
15+
16+
17+
The IDrawingFactory type exposes the following members:
18+
19+
### Methods
20+
| Method | Description |
21+
| :- | :- |
22+
| [create_matrix](/html/python-net/aspose.html.drawing/idrawingfactory/create_matrix/#aspose.html.drawing.IMatrix) | Creates a new matrix with the same contents as the specified matrix. |
23+
| [create_matrix](/html/python-net/aspose.html.drawing/idrawingfactory/create_matrix/#float-float-float-float-float-float) | Creates a new matrix with the specified elements. |
24+
| [create_matrix](/html/python-net/aspose.html.drawing/idrawingfactory/create_matrix/#) | Creates a new identity matrix. |
25+
| [create_solid_brush](/html/python-net/aspose.html.drawing/idrawingfactory/create_solid_brush/#aspose.pydrawing.Color) | Creates a solid brush with the specified color. |
26+
| [create_linear_gradient_brush](/html/python-net/aspose.html.drawing/idrawingfactory/create_linear_gradient_brush/#aspose.pydrawing.RectangleF-list) | Creates a linear gradient brush with the specified parameters. |
27+
| [create_texture_brush](/html/python-net/aspose.html.drawing/idrawingfactory/create_texture_brush/#bytes) | Creates a texture brush with the specified parameters. |
28+
| [create_interpolation_color](/html/python-net/aspose.html.drawing/idrawingfactory/create_interpolation_color/#aspose.pydrawing.Color-float) | Creates an interpolation color with the specified color and position. |
29+
30+
31+
32+
### See Also
33+
* module [`aspose.html.drawing`](..)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: create_interpolation_color method
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 20
7+
url: /python-net/aspose.html.drawing/idrawingfactory/create_interpolation_color/
8+
is_root: false
9+
---
10+
11+
## create_interpolation_color {#aspose.pydrawing.Color-float}
12+
13+
Creates an interpolation color with the specified color and position.
14+
15+
16+
### Returns
17+
18+
19+
The created [`IInterpolationColor`](/html/python-net/aspose.html.drawing/iinterpolationcolor).
20+
21+
22+
```python
23+
def create_interpolation_color(self, color, position):
24+
...
25+
```
26+
27+
28+
| Parameter | Type | Description |
29+
| :- | :- | :- |
30+
| color | aspose.pydrawing.Color | Represents the color that will be used at the corresponding position of the gradient. |
31+
| position | float | The position, represented as a percentage from 0 to 1, at which the corresponding gradient color will be used. |
32+
33+
34+
35+
### See Also
36+
* module [`aspose.html.drawing`](../../)
37+
* class [`IDrawingFactory`](/html/python-net/aspose.html.drawing/idrawingfactory)
38+
* class [`IInterpolationColor`](/html/python-net/aspose.html.drawing/iinterpolationcolor)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: create_linear_gradient_brush method
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 30
7+
url: /python-net/aspose.html.drawing/idrawingfactory/create_linear_gradient_brush/
8+
is_root: false
9+
---
10+
11+
## create_linear_gradient_brush {#aspose.pydrawing.RectangleF-list}
12+
13+
Creates a linear gradient brush with the specified parameters.
14+
15+
16+
### Returns
17+
18+
19+
The created [`ILinearGradientBrush`](/html/python-net/aspose.html.drawing/ilineargradientbrush).
20+
21+
22+
```python
23+
def create_linear_gradient_brush(self, rect, colors):
24+
...
25+
```
26+
27+
28+
| Parameter | Type | Description |
29+
| :- | :- | :- |
30+
| rect | aspose.pydrawing.RectangleF | The rectangle defining the gradient bounds. |
31+
| colors | list | The interpolation colors for the gradient. See [`IInterpolationColor`](/html/python-net/aspose.html.drawing/iinterpolationcolor). |
32+
33+
34+
35+
### See Also
36+
* module [`aspose.html.drawing`](../../)
37+
* class [`IDrawingFactory`](/html/python-net/aspose.html.drawing/idrawingfactory)
38+
* class [`IInterpolationColor`](/html/python-net/aspose.html.drawing/iinterpolationcolor)
39+
* class [`ILinearGradientBrush`](/html/python-net/aspose.html.drawing/ilineargradientbrush)
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: create_matrix method
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 40
7+
url: /python-net/aspose.html.drawing/idrawingfactory/create_matrix/
8+
is_root: false
9+
---
10+
11+
## create_matrix {#}
12+
13+
Creates a new identity matrix.
14+
15+
16+
### Returns
17+
18+
19+
The created [`IMatrix`](/html/python-net/aspose.html.drawing/imatrix).
20+
21+
22+
```python
23+
def create_matrix(self):
24+
...
25+
```
26+
27+
28+
29+
30+
## create_matrix {#aspose.html.drawing.IMatrix}
31+
32+
Creates a new matrix with the same contents as the specified matrix.
33+
34+
35+
### Returns
36+
37+
38+
The created [`IMatrix`](/html/python-net/aspose.html.drawing/imatrix).
39+
40+
41+
```python
42+
def create_matrix(self, matrix):
43+
...
44+
```
45+
46+
47+
| Parameter | Type | Description |
48+
| :- | :- | :- |
49+
| matrix | [`IMatrix`](/html/python-net/aspose.html.drawing/imatrix) | The matrix to copy. |
50+
51+
52+
## create_matrix {#float-float-float-float-float-float}
53+
54+
Creates a new matrix with the specified elements.
55+
56+
57+
### Returns
58+
59+
60+
The created [`IMatrix`](/html/python-net/aspose.html.drawing/imatrix).
61+
62+
63+
```python
64+
def create_matrix(self, m11, m12, m21, m22, m31, m32):
65+
...
66+
```
67+
68+
69+
| Parameter | Type | Description |
70+
| :- | :- | :- |
71+
| m11 | float | The value in the first row and first column of the matrix. |
72+
| m12 | float | The value in the first row and second column of the matrix. |
73+
| m21 | float | The value in the second row and first column of the matrix. |
74+
| m22 | float | The value in the second row and second column of the matrix. |
75+
| m31 | float | The value in the third row and first column of the matrix. |
76+
| m32 | float | The value in the third row and second column of the matrix. |
77+
78+
79+
80+
### See Also
81+
* module [`aspose.html.drawing`](../../)
82+
* class [`IDrawingFactory`](/html/python-net/aspose.html.drawing/idrawingfactory)
83+
* class [`IMatrix`](/html/python-net/aspose.html.drawing/imatrix)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: create_solid_brush method
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 50
7+
url: /python-net/aspose.html.drawing/idrawingfactory/create_solid_brush/
8+
is_root: false
9+
---
10+
11+
## create_solid_brush {#aspose.pydrawing.Color}
12+
13+
Creates a solid brush with the specified color.
14+
15+
16+
### Returns
17+
18+
19+
The created [`ISolidBrush`](/html/python-net/aspose.html.drawing/isolidbrush).
20+
21+
22+
```python
23+
def create_solid_brush(self, color):
24+
...
25+
```
26+
27+
28+
| Parameter | Type | Description |
29+
| :- | :- | :- |
30+
| color | aspose.pydrawing.Color | The color of the solid brush. |
31+
32+
33+
34+
### See Also
35+
* module [`aspose.html.drawing`](../../)
36+
* class [`IDrawingFactory`](/html/python-net/aspose.html.drawing/idrawingfactory)
37+
* class [`ISolidBrush`](/html/python-net/aspose.html.drawing/isolidbrush)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: create_texture_brush method
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 60
7+
url: /python-net/aspose.html.drawing/idrawingfactory/create_texture_brush/
8+
is_root: false
9+
---
10+
11+
## create_texture_brush {#bytes}
12+
13+
Creates a texture brush with the specified parameters.
14+
15+
16+
### Returns
17+
18+
19+
The created [`ITextureBrush`](/html/python-net/aspose.html.drawing/itexturebrush).
20+
21+
22+
```python
23+
def create_texture_brush(self, image_bytes):
24+
...
25+
```
26+
27+
28+
| Parameter | Type | Description |
29+
| :- | :- | :- |
30+
| image_bytes | bytes | The byte array containing the image data. |
31+
32+
33+
34+
### See Also
35+
* module [`aspose.html.drawing`](../../)
36+
* class [`IDrawingFactory`](/html/python-net/aspose.html.drawing/idrawingfactory)
37+
* class [`ITextureBrush`](/html/python-net/aspose.html.drawing/itexturebrush)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: spread_mode property
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 60
7+
url: /python-net/aspose.html.drawing/igradientbrush/spread_mode/
8+
is_root: false
9+
---
10+
11+
## spread_mode property
12+
13+
14+
Gets or sets the SpreadMode mode. SpreadMode mode specifies how a texture or gradient is tiled
15+
when it is smaller than the area being filled.
16+
17+
### See Also
18+
* module [`aspose.html.drawing`](../../)
19+
* class [`IGradientBrush`](/html/python-net/aspose.html.drawing/igradientbrush)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: spread_mode property
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 80
7+
url: /python-net/aspose.html.drawing/ilineargradientbrush/spread_mode/
8+
is_root: false
9+
---
10+
11+
## spread_mode property
12+
13+
14+
Gets or sets the SpreadMode mode. SpreadMode mode specifies how a texture or gradient is tiled
15+
when it is smaller than the area being filled.
16+
17+
### See Also
18+
* module [`aspose.html.drawing`](../../)
19+
* class [`ILinearGradientBrush`](/html/python-net/aspose.html.drawing/ilineargradientbrush)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: IMatrix class
3+
second_title: Aspose.HTML for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 110
7+
url: /python-net/aspose.html.drawing/imatrix/
8+
is_root: false
9+
---
10+
11+
## IMatrix class
12+
13+
Represents a matrix used for transformations.
14+
15+
16+
17+
The IMatrix type exposes the following members:
18+
19+
### Properties
20+
| Property | Description |
21+
| :- | :- |
22+
| [is_identity](/html/python-net/aspose.html.drawing/imatrix/is_identity) | Gets a value indicating whether this matrix is the identity matrix. |
23+
| [m11](/html/python-net/aspose.html.drawing/imatrix/m11) | Gets or sets the value in the first row and first column of the matrix. |
24+
| [m12](/html/python-net/aspose.html.drawing/imatrix/m12) | Gets or sets the value in the first row and second column of the matrix. |
25+
| [m21](/html/python-net/aspose.html.drawing/imatrix/m21) | Gets or sets the value in the second row and first column of the matrix. |
26+
| [m22](/html/python-net/aspose.html.drawing/imatrix/m22) | Gets or sets the value in the second row and second column of the matrix. |
27+
| [m31](/html/python-net/aspose.html.drawing/imatrix/m31) | Gets or sets the value in the third row and first column of the matrix. |
28+
| [m32](/html/python-net/aspose.html.drawing/imatrix/m32) | Gets or sets the value in the third row and second column of the matrix. |
29+
| [is_invertible](/html/python-net/aspose.html.drawing/imatrix/is_invertible) | Gets a value indicating whether this matrix is invertible. |
30+
31+
32+
### Methods
33+
| Method | Description |
34+
| :- | :- |
35+
| [scale](/html/python-net/aspose.html.drawing/imatrix/scale/#float-float-aspose.html.drawing.WebMatrixOrder) | Scales the matrix by the specified scale factors in the specified order. |
36+
| [scale](/html/python-net/aspose.html.drawing/imatrix/scale/#float-float) | Scales the matrix by the specified scale factors uniformly. |
37+
| [translate](/html/python-net/aspose.html.drawing/imatrix/translate/#float-float-aspose.html.drawing.WebMatrixOrder) | Translates the matrix by the specified offset values in the specified order. |
38+
| [translate](/html/python-net/aspose.html.drawing/imatrix/translate/#float-float) | Translates the matrix by the specified offset values. |
39+
| [multiply](/html/python-net/aspose.html.drawing/imatrix/multiply/#aspose.html.drawing.IMatrix-aspose.html.drawing.WebMatrixOrder) | Multiplies this matrix by another matrix in the specified order. |
40+
| [multiply](/html/python-net/aspose.html.drawing/imatrix/multiply/#aspose.html.drawing.IMatrix) | Multiplies this matrix by another matrix. |
41+
| [rotate](/html/python-net/aspose.html.drawing/imatrix/rotate/#float-aspose.html.drawing.WebMatrixOrder) | Rotates the matrix by the specified angle in the specified order. |
42+
| [rotate](/html/python-net/aspose.html.drawing/imatrix/rotate/#float) | Rotates the matrix by the specified angle. |
43+
| [rotate_at](/html/python-net/aspose.html.drawing/imatrix/rotate_at/#float-aspose.pydrawing.PointF-aspose.html.drawing.WebMatrixOrder) | Rotates the matrix by the specified angle around the specified point in the specified order. |
44+
| [rotate_at](/html/python-net/aspose.html.drawing/imatrix/rotate_at/#float-aspose.pydrawing.PointF) | Rotates the matrix by the specified angle around the specified point. |
45+
| [invert](/html/python-net/aspose.html.drawing/imatrix/invert/#) | Inverts this matrix. |
46+
| [get_elements](/html/python-net/aspose.html.drawing/imatrix/get_elements/#) | Gets the elements of the matrix as an array. |
47+
| [transform_point](/html/python-net/aspose.html.drawing/imatrix/transform_point/#aspose.pydrawing.PointF) | Transforms the specified point using this matrix. |
48+
| [transform_points](/html/python-net/aspose.html.drawing/imatrix/transform_points/#aspose.pydrawing.PointF[]) | Transforms an array of points using this matrix. |
49+
| [transform_rectangle](/html/python-net/aspose.html.drawing/imatrix/transform_rectangle/#aspose.pydrawing.RectangleF) | Transforms the specified rectangle using this matrix. |
50+
| [skew](/html/python-net/aspose.html.drawing/imatrix/skew/#float-float) | Applies a skew transformation to the matrix. |
51+
| [reset](/html/python-net/aspose.html.drawing/imatrix/reset/#) | Resets the matrix to the identity matrix. |
52+
| [clone](/html/python-net/aspose.html.drawing/imatrix/clone/#) | Creates a copy of this matrix. |
53+
54+
55+
56+
### See Also
57+
* module [`aspose.html.drawing`](..)

0 commit comments

Comments
 (0)