ImageInfo

Vue de l’ensemble

‘ImageInfo’ est un type dans Aspose.PDF FOSS pour Go.

ImageInfo détient des métadonnées sur une image trouvée sur la page sans décoder les données pixels.

Ce type fournit 4 méthodes pour travailler avec les objets ImageInfo dans les programmes Go. Les méthodologies disponibles comprennent: ‘Extract’, ‘Remove’, Replace', ‘ReplacementFromStream'. Tous les membres publics sont accessibles à n'importe quelle application Go après l'installation de la partie Aspose.PDF FOSS pour le package Go . Propriétés : 'BPC', ''ColorSpace, ‘Format , 'Height et 5 autres.

Propriétés

NameTypeAccessDescription
WidthintRead/WriteGets the width.
HeightintRead/WriteGets the height.
BPCintRead/WriteGets the bpc.
ColorSpaceImageColorSpaceRead/WriteGets the color space.
FormatImageFormatRead/WriteGets the format.
Xfloat64Read/WriteGets the x.
Yfloat64Read/WriteGets the y.
PageWidthfloat64Read/WriteGets the page width.
PageHeightfloat64Read/WriteGets the page height.
InlineboolRead/WriteGets the inline.
NamestringRead/WriteGets the name.

méthodes

SignatureDescription
Extract()(*Image, error)Extract decodes the image and returns the full Image with pixel data.
Remove()errorRemove removes the image from the page.
Replace(path: string)errorReplace replaces the image data with a new image from a file.
ReplaceFromStream(r: io.Reader)errorReplaceFromStream replaces the image data with a new image from a reader.

Voir aussi

  • Aspose.PDF — Résultats de l’API d’entreprise
 Français