RasterizedPage

RasterizedPage

Vue d’ensemble

RasterizedPage est une classe dans le FOSS Aspose.PDF pour Python.

Une page PDF rendue au format RGB compact.

Cette classe fournit 4 méthodes pour travailler avec les objets RasterizedPage dans les programmes Python. Les méthodes disponibles sont : get_pixel, save, to_png, to_tiff. Tous les membres publics sont accessibles à toute application Python après l’installation du paquet Aspose.PDF FOSS pour Python. Propriétés : dpi, height, pixels, width.

Propriétés

NomTypeAccèsDescription
widthintLectureObtient la largeur.
heightintLectureObtient la hauteur.
pixelsbytesLectureObtient les pixels.
dpifloatLectureObtient le dpi.

Méthodes

SignatureDescription
get_pixel(x: int, y: int) → ColorRetourner le pixel RVB à (x, y) avec l’origine en haut à gauche.
to_png() → bytesEncodez ce raster en fichier PNG.
to_tiff() → bytesEncodez ce raster en fichier TIFF RGB de base non compressé.
`save(path: strPath)→Path`

Voir aussi

 Français