|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjjil.core.Image
jjil.core.RgbImage
public class RgbImage
RgbImage is the type used to hold an RGB image, which is stored as an ARGB image type (32-bits) with the A byte always 0.
Implementation-specific libraries define methods that allow the creation of an RgbImage from a native image type. RgbImage is therefore the first and last jjil.core object used after capture and before display of an image.
| Constructor Summary | |
|---|---|
RgbImage(int cWidth,
int cHeight)
Creates a new instance of RgbImage |
|
RgbImage(int cWidth,
int cHeight,
byte bR,
byte bG,
byte bB)
Creates a new instance of RgbImage, assigning a constant value |
|
| Method Summary | |
|---|---|
Image |
clone()
Creates a shallow copy of this image |
int[] |
getData()
Get a pointer to the image data. |
java.lang.String |
toString()
Return a string describing the image. |
| 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 RgbImage(int cWidth,
int cHeight)
cWidth - the image widthcHeight - the image height
public RgbImage(int cWidth,
int cHeight,
byte bR,
byte bG,
byte bB)
bR - the red color value to be assigned.bG - the green color value to be assigned.bB - the blue color value to be assigned.cWidth - the image widthcHeight - the image height| Method Detail |
|---|
public Image clone()
clone in class Imagepublic int[] getData()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||