Packages

 

com.aspose.imaging.fileformats.jpeg2000

Class Jpeg2000Image

    • Constructor Detail

      • Jpeg2000Image

        public Jpeg2000Image(String path)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        path - The path to load image from and initialize pixel and palette data with.
      • Jpeg2000Image

        public Jpeg2000Image(String path,
                             int bitsPerPixel)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        path - The path to load image from and initialize pixel and palette data with
        bitsPerPixel - The bits per pixel.
      • Jpeg2000Image

        public Jpeg2000Image(InputStream stream)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        stream - The stream to load image from and initialize pixel and palette data with.
      • Jpeg2000Image

        public Jpeg2000Image(InputStream stream,
                             int bitsPerPixel)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        stream - The stream to load image from and initialize pixel and palette data with.
        bitsPerPixel - The bits per pixel.
      • Jpeg2000Image

        public Jpeg2000Image(int width,
                             int height)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        width - The image width
        height - The image height
      • Jpeg2000Image

        public Jpeg2000Image(int width,
                             int height,
                             Jpeg2000Options options)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        width - The image width
        height - The image height
        options - The options.
      • Jpeg2000Image

        public Jpeg2000Image(int width,
                             int height,
                             int bitsCount)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        width - The image width
        height - The image height
        bitsCount - The bits count.
      • Jpeg2000Image

        public Jpeg2000Image(RasterImage image)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        image - The image.
      • Jpeg2000Image

        public Jpeg2000Image(RasterImage rasterImage,
                             int bitsPerPixel)

        Initializes a new instance of the Jpeg2000Image class.

        Parameters:
        rasterImage - The image to initialize pixel and palette data with.
        bitsPerPixel - The bits per pixel.
    • Method Detail

      • getFileFormat

        public long getFileFormat()

        Gets a value of file format

        Overrides:
        getFileFormat in class Image
      • getRawLineSize

        public int getRawLineSize()

        Gets the raw line size in bytes.

        Overrides:
        getRawLineSize in class RasterImage
        Returns:
        The raw line size in bytes.
      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets image depth (bits per pixel)

        Specified by:
        getBitsPerPixel in class Image
        Returns:
        The image bits per pixel count.
      • getHorizontalResolution

        public double getHorizontalResolution()

        Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage.

        Overrides:
        getHorizontalResolution in class RasterImage
        Returns:
        The horizontal resolution.

        Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.

      • setHorizontalResolution

        public void setHorizontalResolution(double value)

        Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage.

        Overrides:
        setHorizontalResolution in class RasterImage
        Parameters:
        value - The horizontal resolution.

        Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.

      • getVerticalResolution

        public double getVerticalResolution()

        Gets or sets the vertical resolution, in pixels per inch, of this RasterImage.

        Overrides:
        getVerticalResolution in class RasterImage
        Returns:
        The vertical resolution.

        Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.

      • setVerticalResolution

        public void setVerticalResolution(double value)

        Gets or sets the vertical resolution, in pixels per inch, of this RasterImage.

        Overrides:
        setVerticalResolution in class RasterImage
        Parameters:
        value - The vertical resolution.

        Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.

      • getComments

        public String[] getComments()

        Gets or sets the comments.

        Returns:
        The comments.
      • setComments

        public void setComments(String[] value)

        Gets or sets the comments.

        Parameters:
        value - The comments.
      • getCodec

        public int getCodec()

        Gets the codec.

        Returns:
        The codec.