|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.cpc.CpcImage
public class CpcImage
An annotated version of an image, to be returned by CpcImageDecoder
s.
Constructor Summary | |
---|---|
CpcImage(java.awt.Image img,
int sourceSize,
boolean isAnim)
Construct a CpcImage. |
Method Summary | |
---|---|
int |
getApproxSize()
Returns the approximate uncompressed size. |
java.awt.Image |
getImage()
|
int |
getSourceSize()
Returns the size of the compressed image data. |
boolean |
isAnimated()
|
int |
tag()
Return the image's tag number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CpcImage(java.awt.Image img, int sourceSize, boolean isAnim)
img
- The ifmage.isAnim
- Whether the image is animated. Some image objects contain
multiple frames, and can be crudely animated because drawImage returns
the frames in sequence, once per call. Set to true if your image supports
this kind of animation. (In particular, this works with animated GIFs.)
If unsure, set true - it's usually harmless.Method Detail |
---|
public java.awt.Image getImage()
public boolean isAnimated()
public int getApproxSize()
public int getSourceSize()
public int tag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |