PsCanvas
Vue de l’ensemble
‘PsCanvas’ est une classe dans Aspose.Page FOSS pour Python.
Canvas qui applique les opérateurs PostScript à une page.
Cette classe fournit 23 méthodes pour travailler avec des objets PsCanvas dans les programmes Python. Les méthodologies disponibles comprennent: __init__, clip , ‘close_path ; 'concat; ‘curve_to : draw_image ، ‘draw-text . , ‘ellipse et ‘fill! ,fill_stroke. , ''init_clipe., ’line_ to` ainsi que 11 méthode supplémentaires. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de la page Aspose.Page FOSS pour le package PyThone.
méthodes
| Signature | Description |
|---|---|
__init__(page: PsPage) | |
move_to(x: float, y: float) | Moves the current drawing point to the coordinates (x, y) without creating a line segment |
line_to(x: float, y: float) | |
curve_to(x1: float, y1: float, x2: float, y2: float, x3: float, y3: float) | |
close_path() | |
rect(x: float, y: float, w: float, h: float) | |
ellipse(x: float, y: float, w: float, h: float) | |
stroke() | |
fill() | |
fill_stroke() | |
set_stroke_color(color: tuple[float, ...]) | Sets the stroke color value. |
set_fill_color(color: tuple[float, ...]) | Sets the fill color value. |
set_line_width(width: float) | Sets the line width value. |
set_line_cap(cap: int) | Sets the line cap value. |
set_line_join(join: int) | Sets the line join value. |
set_miter_limit(limit: float) | Sets the miter limit value. |
concat(matrix: tuple[float, float, float, float, float, float]) | |
save_state() | |
restore_state() | |
clip() | |
init_clip() | |
draw_text(text: str, x: float, y: float, font_name: str, size: float) | |
draw_image(image: PsImage, x: float, y: float, w: float, h: float) |
Voir aussi
- Aspose.Page pour Python — API d’entreprise référence