public class BMPImage
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected java.awt.image.BufferedImage |
image |
protected InfoHeader |
infoHeader |
构造器和说明 |
---|
BMPImage(java.awt.image.BufferedImage image,
InfoHeader infoHeader)
Creates a new instance of BMPImage
|
限定符和类型 | 方法和说明 |
---|---|
int |
getColourCount()
The number of possible colours for the BMP image.
|
int |
getColourDepth()
The colour depth of the BMP image (bits per pixel).
|
int |
getHeight()
The height of the BMP image in pixels.
|
java.awt.image.BufferedImage |
getImage()
The decoded BMP image.
|
InfoHeader |
getInfoHeader()
The InfoHeader structure representing the encoded BMP image.
|
int |
getWidth()
The width of the BMP image in pixels.
|
boolean |
isIndexed()
Specifies whether this BMP image is indexed, that is, the encoded bitmap uses a colour table.
|
void |
setImage(java.awt.image.BufferedImage image)
Sets the image to be encoded.
|
void |
setInfoHeader(InfoHeader infoHeader)
Sets the InfoHeader structure used for encoding the BMP image.
|
protected InfoHeader infoHeader
protected java.awt.image.BufferedImage image
public BMPImage(java.awt.image.BufferedImage image, InfoHeader infoHeader)
image
- the decoded imageinfoHeader
- the InfoHeader structure providing information about the source encoded imagepublic InfoHeader getInfoHeader()
public void setInfoHeader(InfoHeader infoHeader)
public java.awt.image.BufferedImage getImage()
public void setImage(java.awt.image.BufferedImage image)
public int getWidth()
public int getHeight()
public int getColourDepth()
public int getColourCount()
public boolean isIndexed()