PPimages

Vue de l’ensemble

‘PPImage’ est une classe dans Aspose.Slides FOSS pour C++.

Représente une image stockée dans une présentation.

Cette classe fournit 13 méthodes pour travailler avec des objets PPImage dans les programmes C++. Les méthodologies disponibles comprennent: ‘binary_data’, ‘content_type’, height', ‘image', ’init_internal, ‘package , 'part_name ، ‘raw_ data` et 1 méthode supplémentaire. Tous les membres publics sont accessibles à toute application C ++ après l’installation de la version Aspose.Slides FOSS pour le package C+.

méthodes

SignatureDescription
init_internal(package: Internal::opc::OpcPackage, part_name: std::string, image_data: std::vector<std::uint8_t>, content_type: std::string)Internal initialization with OPC package reference.
binary_data()std::vector<std::uint8_t>Returns a copy of the image’s binary data.
image()std::unique_ptr<IImage>Returns a copy of the image as an IImage.
content_type()std::stringReturns the MIME content type.
width()intReturns the width of the image in pixels.
height()intReturns the height of the image in pixels.
x()intReturns the X-offset of the image (always 0).
y()intReturns the Y-offset of the image (always 0).
replace_image(new_data: std::span<const std::uint8_t>)Replaces the image data with new raw bytes.
raw_data()std::span<const std::uint8_t>Returns a read-only view of the raw image data.
part_name()std::stringReturns the internal part name used for PPTX relationship tracking.
set_part_name(value: std::string)Sets the internal part name used for PPTX relationship tracking.
package()Internal::opc::OpcPackageReturns the associated OPC package, or nullptr if not set.

Voir aussi

  • Aspose.Slides - référence API d’entreprise
 Français