com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class PPImage

  • java.lang.Object
    • com.aspose.slides.PPImage
  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, IPPImage


    public class PPImage
    extends java.lang.Object
    implements IPPImage, com.aspose.ms.System.IDisposable

    Represents an image in a presentation.

    • Method Detail

      • getBinaryData

        public final byte[] getBinaryData()

        Returns the copy of an image's data. Read-only byte[].

        Specified by:
        getBinaryData in interface IPPImage
      • getSystemImage

        public final java.awt.image.BufferedImage getSystemImage()

        Returns the copy of an image. Read-only BufferedImage.

        Specified by:
        getSystemImage in interface IPPImage
      • getSvgImage

        public final ISvgImage getSvgImage()

        Returns or sets ISvgImage object ISvgImage


        This value indicates that this image has been created from SVG.

        Specified by:
        getSvgImage in interface IPPImage
      • setSvgImage

        public final void setSvgImage(ISvgImage value)

        Returns or sets ISvgImage object ISvgImage


        This value indicates that this image has been created from SVG.

        Specified by:
        setSvgImage in interface IPPImage
      • replaceImage

        public final void replaceImage(byte[] newImageData)

        Replaces image data.

        Specified by:
        replaceImage in interface IPPImage
        Parameters:
        newImageData - The new image's data.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When newImageData parameter is null.
      • replaceImage

        public final void replaceImage(IPPImage newImage)

        Replaces image data.

        Specified by:
        replaceImage in interface IPPImage
        Parameters:
        newImage - The new IPPImage.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When newImage parameter is null.
      • getContentType

        public final java.lang.String getContentType()

        Returns a MIME type of an image, encoded in BinaryData(getBinaryData()). Read-only String.

        Specified by:
        getContentType in interface IPPImage
      • getWidth

        public final int getWidth()

        Returns a width of an image. Read-only int.

        Specified by:
        getWidth in interface IPPImage
      • getHeight

        public final int getHeight()

        Returns a height of an image. Read-only int.

        Specified by:
        getHeight in interface IPPImage
      • getX

        public final int getX()

        Returns a X-offset of an image. Read-only int.

        Specified by:
        getX in interface IPPImage
      • getY

        public final int getY()

        Returns a Y-offset of an image. Read-only int.

        Specified by:
        getY in interface IPPImage
      • hashCode

        public int hashCode()

        Returns the hash code of an image.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        Hash code.
      • dispose

        public final void dispose()

        Disposes object.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable