RasterSurface
Vue de l’ensemble
‘RasterSurface’ est une classe dans Aspose.Page FOSS pour Python.
Surface de pixel RGBA.
Cette classe fournit 3 méthodes pour travailler avec les objets RasterSurface dans les programmes Python. Les méthodologies disponibles comprennent: ‘create’, ‘get_pixel’, set_piksel'. Tous les membres publics sont accessibles à n'importe quelle application Pythone après l'installation de la page Aspose.Page FOSS pour le package Pyathon. Propriétés: clip_mask, height,pixelsetwidth`.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
width | int | Read/Write | Gets or sets the width. |
height | int | Read/Write | Gets or sets the height. |
pixels | bytearray | Read/Write | Gets or sets the pixels. |
clip_mask | `bytearray | None` | Read/Write |
méthodes
| Signature | Description |
|---|---|
create(width: int, height: int, background: tuple[int, int, int, int]) → "RasterSurface" | |
set_pixel(x: int, y: int, color: tuple[int, int, int, int]) | Sets the pixel value. |
get_pixel(x: int, y: int) → tuple[int, int, int, int] |
Voir aussi
- Aspose.Page pour Python — API d’entreprise référence