Class Bitmap

  • All Implemented Interfaces:
    Serializable

    public class Bitmap
    extends Object
    implements Serializable
    A Bitmap instance contains an image information in bitmap format.
    Since:
    Oct 6, 2007
    Version:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • Bitmap

        public Bitmap​(byte[] pixels,
                      int width,
                      int height,
                      int ppi,
                      int depth,
                      int lossyFlag)
        Creates an instance of Bitmap with specified data.
        Parameters:
        pixels - the image pixes, not null
        width - the image width, not null
        height - the image height, not null
        ppi - pixel per inch, not null
        depth - the image depth, not null
        lossyFlag - lossy flag, not null
    • Method Detail

      • getWidth

        public int getWidth()
        Returns the image width
        Returns:
        the image width, not null
      • getHeight

        public int getHeight()
        Returns the image height
        Returns:
        the image height, not null
      • getPpi

        public int getPpi()
        Returns the image ppi
        Returns:
        the image ppi, not null
      • getPixels

        public byte[] getPixels()
        Returns the image pixels
        Returns:
        the image pixels, not null
      • getLength

        public int getLength()
        Returns the image length
        Returns:
        the image length, not null
      • getDepth

        public int getDepth()
        Returns the image depth
        Returns:
        the image depth, not null
      • getLossyFlag

        public int getLossyFlag()
        Returns the image lossy flag
        Returns:
        the image lossy flag, not null