|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.Image
jjil.core.Gray8Image
jjil.core.Gray8SubImage
public class Gray8SubImage
Gray8SubImage is used to represent a rectangular region extracted from a larger Gray8Image, retaining the x and y position where the subimage was extracted.
Constructor Summary | |
---|---|
Gray8SubImage(int cWidth,
int cHeight,
int cX,
int cY)
Creates a new instance of Gray8SubImage |
Method Summary | |
---|---|
Image |
clone()
Copy this image |
int |
getXOffset()
Get horizontal offset of subimage. |
int |
getYOffset()
Get vertical offset of subimage. |
void |
setXOffset(int nX)
Change horizontal position of subimage. |
void |
setYOffset(int nY)
Change vertical position of subimage. |
java.lang.String |
toString()
Return a string describing the image. |
Methods inherited from class jjil.core.Gray8Image |
---|
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 Gray8SubImage(int cWidth, int cHeight, int cX, int cY)
cWidth
- Image height.cHeight
- Image width.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 Gray8Image
public int getXOffset()
public int getYOffset()
public void setXOffset(int nX)
nX
- the new horizontal position.public void setYOffset(int nY)
nY
- the new vertical position.public java.lang.String toString()
toString
in class Gray8Image
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |