public class ICOImage extends BMPImage
限定符和类型 | 字段和说明 |
---|---|
protected IconEntry |
iconEntry |
protected int |
iconIndex |
protected boolean |
pngCompressed |
image, infoHeader
构造器和说明 |
---|
ICOImage(java.awt.image.BufferedImage image,
InfoHeader infoHeader,
IconEntry iconEntry)
Creates a new instance of ICOImage
|
限定符和类型 | 方法和说明 |
---|---|
int |
getColourCount()
The number of possible colours for the ICO image.
|
int |
getColourDepth()
The colour depth of the ICO image (bits per pixel).
|
int |
getHeight()
The height of the ICO image in pixels.
|
IconEntry |
getIconEntry()
The IconEntry associated with this ICOImage, which provides information
about the image format and encoding.
|
int |
getIconIndex()
The zero-based index for this ICOImage in the source ICO file or resource.
|
InfoHeader |
getInfoHeader()
The InfoHeader structure representing the encoded ICO image.
|
int |
getWidth()
The width of the ICO image in pixels.
|
boolean |
isIndexed()
Specifies whether this ICO image is indexed, that is, the encoded bitmap uses a colour table.
|
boolean |
isPngCompressed()
Specifies whether the encoded image is PNG compressed.
|
void |
setIconEntry(IconEntry iconEntry)
Sets the IconEntry associated with this ICOImage.
|
void |
setIconIndex(int iconIndex)
Sets the icon index, which is zero-based.
|
void |
setPngCompressed(boolean pngCompressed)
Sets whether the encoded image is PNG compressed.
|
getImage, setImage, setInfoHeader
protected IconEntry iconEntry
protected boolean pngCompressed
protected int iconIndex
public ICOImage(java.awt.image.BufferedImage image, InfoHeader infoHeader, IconEntry iconEntry)
image
- the BufferedImage decoded from the source ICO imageinfoHeader
- the BMP InfoHeader structure for the BMP encoded ICO imageiconEntry
- the IconEntry structure describing the ICO imagepublic IconEntry getIconEntry()
public void setIconEntry(IconEntry iconEntry)
iconEntry
- the new IconEntry structure to setpublic boolean isPngCompressed()
public void setPngCompressed(boolean pngCompressed)
pngCompressed
- true if the encoded image is PNG compressed, false if it is plain BMP encodedpublic InfoHeader getInfoHeader()
getInfoHeader
在类中 BMPImage
public int getIconIndex()
public void setIconIndex(int iconIndex)
iconIndex
- the zero-based icon index, or -1 if unknown.public int getWidth()
public int getHeight()
public int getColourDepth()
getColourDepth
在类中 BMPImage
public int getColourCount()
getColourCount
在类中 BMPImage