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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void dispose()
      Disposes object.
      byte[] getBinaryData()
      Returns the copy of an image's data.
      java.lang.String getContentType()
      Returns a MIME type of an image, encoded in BinaryData(getBinaryData()).
      int getHeight()
      Returns a height of an image.
      java.awt.image.BufferedImage getSystemImage()
      Returns the copy of an image.
      int getWidth()
      Returns a width of an image.
      int getX()
      Returns a X-offset of an image.
      int getY()
      Returns a Y-offset of an image.
      int hashCode()
      Returns the hash code of an image.
      void replaceImage(byte[] newImageData)
      Replaces image data.
      void replaceImage(IPPImage newImage)
      Replaces image data.
      • Methods inherited from class java.lang.Object

        equals, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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
      • 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