|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.Image
jjil.core.Gray32Image
jjil.core.Gray32SubImage
public class Gray32SubImage
Gray32SubImage is used to represent a rectangular region extracted from a larger Gray32Image, retaining the x and y position where the image was extracted.
Constructor Summary | |
---|---|
Gray32SubImage(int cWidth,
int cHeight,
int cX,
int cY)
Creates a new instance of Gray32SubImage |
Method Summary | |
---|---|
Image |
clone()
Copy this image |
int |
getXOffset()
Return horizontal position of top-left corner of subimage. |
int |
getYOffset()
Return vertical position of top-left corner of subimage. |
void |
setXOffset(int nX)
Change horizontal position of subimage. |
void |
setYOffset(int nY)
Change vertical psotion of subimage. |
java.lang.String |
toString()
Return a string describing the image. |
Methods inherited from class jjil.core.Gray32Image |
---|
getData |
Methods inherited from class jjil.core.Image |
---|
getHeight, getWidth |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Gray32SubImage(int cWidth, int cHeight, int cX, int cY)
cWidth
- Image width.cHeight
- Image height.cX
- Horizontal position of top-left corner of subimage.cY
- Vertical position of top-left corner of subimage.Method Detail |
---|
public Image clone()
clone
in class Gray32Image
public int getXOffset()
public int getYOffset()
public void setXOffset(int nX)
nX
- New horizontal position of top-left corner of subimage.public void setYOffset(int nY)
nY
- New vertical position of top-left corner of subimage.public java.lang.String toString()
toString
in class Gray32Image
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |