|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.tangoatk.widget.image.IImageFormat
fr.esrf.tangoatk.widget.image.Mono8ImageFormat
public class Mono8ImageFormat
Monochrome 8bits image format
| Constructor Summary | |
|---|---|
Mono8ImageFormat()
|
|
| Method Summary | |
|---|---|
void |
computeFitting()
Compute the fitting bounds (Monochrome only) |
int |
getHistogramWidth()
Returns the histogram width. |
java.lang.String |
getName()
Returns the format name. |
int |
getRGB(boolean negative,
int[] colormap16,
int x,
int y)
Returns the pixel at the specifed pos |
double |
getValue(int x,
int y)
Gets the pixel value as double (Used for table and profile display). |
java.lang.String |
getValueStr(int x,
int y)
Gets the pixel value as string (Used for pixel info display). |
int |
getWidth()
Returns the width of the image depending on the format. |
boolean |
isColorFormat()
Returns true if this format is a color format, false otherwise. |
void |
setData(byte[] rawData)
Sets and decode the data. |
| Methods inherited from class fr.esrf.tangoatk.widget.image.IImageFormat |
|---|
getHeight, initDefault, isNull, setFitting |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mono8ImageFormat()
| Method Detail |
|---|
public void setData(byte[] rawData)
throws java.io.IOException
IImageFormat
setData in class IImageFormatrawData - Pointer to image data
java.io.IOExceptionpublic int getWidth()
IImageFormat
getWidth in class IImageFormatpublic java.lang.String getName()
IImageFormat
getName in class IImageFormatpublic boolean isColorFormat()
IImageFormat
isColorFormat in class IImageFormatpublic int getHistogramWidth()
IImageFormat
getHistogramWidth in class IImageFormat
public double getValue(int x,
int y)
IImageFormat
getValue in class IImageFormatx - horizontal coordinatey - vertical coordinate
public java.lang.String getValueStr(int x,
int y)
IImageFormat
getValueStr in class IImageFormatx - horizontal coordinatey - vertical coordinatepublic void computeFitting()
IImageFormat
computeFitting in class IImageFormat
public int getRGB(boolean negative,
int[] colormap16,
int x,
int y)
IImageFormat
getRGB in class IImageFormatnegative - Negative flagcolormap16 - 16Bit colormap (Monochrome only)x - horizontal coordinatey - vertical coordinate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||