com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class ImageFormat

    • Constructor Detail

      • ImageFormat

        protected ImageFormat(String fileName)

        Initializes a new instance of the ImageFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create an ImageFormat instance.
      • ImageFormat

        protected ImageFormat(String fileName,
                   com.aspose.ms.System.Text.Encoding encoding)

        Initializes a new instance of the ImageFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create an ImageFormat instance.
        encoding - The encoding to be used for text metadata with unknown encoding.
      • ImageFormat

        protected ImageFormat(InputStream input)

        Initializes a new instance of the ImageFormat class.

        Parameters:
        input - A stream that contains the data for this ImageFormat.
      • ImageFormat

        protected ImageFormat(InputStream input,
                   com.aspose.ms.System.Text.Encoding encoding)

        Initializes a new instance of the ImageFormat class.

        Parameters:
        input - A stream that contains the data for this ImageFormat.
        encoding - The encoding to be used for text metadata with unknown encoding.
    • Method Detail

      • getWidth

        public int getWidth()

        Gets the image width.

        Returns:
        The width.
      • getHeight

        public int getHeight()

        Gets the image height.

        Returns:
        The height.
      • getByteOrder

        public final int getByteOrder()

        Gets the byte-order of the image. Please see <a href="https://en.wikipedia.org/wiki/Endianness">https://en.wikipedia.org/wiki/Endianness</a> for more information.

        Returns:
        The byte-order value.
      • fromFile

        public static ImageFormat fromFile(String fileName)

        Creates ImageFormat from a file.

        Parameters:
        fileName - A string that contains the full name of the file from which to create a ImageFormat instance.
        Returns:
        An instance of the appropriate descendant of the ImageFormat class.
      • fromFile

        public static ImageFormat fromFile(String fileName,
                           Charset encoding)

        Creates ImageFormat from a file.

        Parameters:
        fileName - A string that contains the full name of the file from which to create a ImageFormat instance.
        encoding - The encoding to be used for text metadata with unknown encoding.
        Returns:
        An instance of the appropriate descendant of the ImageFormat class.
      • fromStream

        public static ImageFormat fromStream(InputStream stream)

        Creates ImageFormat from a stream.

        Parameters:
        stream - A stream that contains the data for this ImageFormat.
        Returns:
        An instance of the appropriate descendant of the ImageFormat class.
      • cleanMetadata

        public void cleanMetadata()

        Removes writable metadata properties associated with the image.


        This feature is not available in trial mode.

        Overrides:
        cleanMetadata in class FormatBase