Package org.jnbis.api.model
Class Bitmap
- java.lang.Object
-
- org.jnbis.api.model.Bitmap
-
- All Implemented Interfaces:
Serializable
public class Bitmap extends Object implements Serializable
ABitmapinstance contains an image information in bitmap format.- Since:
- Oct 6, 2007
- Version:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Bitmap(byte[] pixels, int width, int height, int ppi, int depth, int lossyFlag)Creates an instance ofBitmapwith specified data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDepth()Returns the image depthintgetHeight()Returns the image heightintgetLength()Returns the image lengthintgetLossyFlag()Returns the image lossy flagbyte[]getPixels()Returns the image pixelsintgetPpi()Returns the image ppiintgetWidth()Returns the image width
-
-
-
Constructor Detail
-
Bitmap
public Bitmap(byte[] pixels, int width, int height, int ppi, int depth, int lossyFlag)Creates an instance ofBitmapwith specified data.- Parameters:
pixels- the image pixes, not nullwidth- the image width, not nullheight- the image height, not nullppi- pixel per inch, not nulldepth- the image depth, not nulllossyFlag- 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
-
-