Packages

 

com.aspose.imaging.fileformats.opendocument

Class OdImage

    • Constructor Detail

      • OdImage

        public OdImage(StreamContainer streamContainer)

        Initializes a new instance of the OdImage class.

        Parameters:
        streamContainer - The stream.
    • Method Detail

      • isCached

        public boolean isCached()

        Gets a value indicating whether object's data is cached currently and no data reading is required.

        Overrides:
        isCached in class VectorMultipageImage
        Returns:
        a value indicating whether object's data is cached currently and no data reading is required.
        Throws:
        com.aspose.ms.System.NotImplementedException - The not implemented this method Value: true if object's data is cached; otherwise, false.
      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets the image bits per pixel count.

        Overrides:
        getBitsPerPixel in class VectorMultipageImage
        Returns:
        the image bits per pixel count.
        Throws:
        com.aspose.ms.System.NotImplementedException - The not implemented this property Value: The image bits per pixel count.
      • getMetadata

        public final OdMetadata getMetadata()

        Gets the metadata.

        Value: The metadata.
        Returns:
        the metadata.
      • getRecords

        public final OdObject[] getRecords()

        Gets the records.

        Value: The records.
        Specified by:
        getRecords in interface com.aspose.internal.fileformats.opendocument.IOdImage
        Returns:
        the records.
      • resize

        public void resize(int newWidth,
                           int newHeight,
                           ImageResizeSettings settings)

        Resizes the image.

        Overrides:
        resize in class VectorMultipageImage
        Parameters:
        newWidth - The new width.
        newHeight - The new height.
        settings - The resize settings.
      • resize

        public void resize(int newWidth,
                           int newHeight,
                           int resizeType)

        Resizes the image.

        Overrides:
        resize in class VectorMultipageImage
        Parameters:
        newWidth - The new width.
        newHeight - The new height.
        resizeType - The resize type.
      • rotateFlip

        public void rotateFlip(int rotateFlipType)

        Rotates, flips, or rotates and flips the image.

        Overrides:
        rotateFlip in class VectorMultipageImage
        Parameters:
        rotateFlipType - Type of the rotate flip.