public class RGB24ImageFormat extends IImageFormat
Constructor and Description |
---|
RGB24ImageFormat() |
Modifier and Type | Method and Description |
---|---|
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.
|
getHeight, initDefault, isNull, setFitting
public void setData(byte[] rawData) throws java.io.IOException
IImageFormat
setData
in class IImageFormat
rawData
- Pointer to image datajava.io.IOException
public int getWidth()
IImageFormat
getWidth
in class IImageFormat
public java.lang.String getName()
IImageFormat
getName
in class IImageFormat
public boolean isColorFormat()
IImageFormat
isColorFormat
in class IImageFormat
public int getHistogramWidth()
IImageFormat
getHistogramWidth
in class IImageFormat
public double getValue(int x, int y)
IImageFormat
getValue
in class IImageFormat
x
- horizontal coordinatey
- vertical coordinatepublic java.lang.String getValueStr(int x, int y)
IImageFormat
getValueStr
in class IImageFormat
x
- 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 IImageFormat
negative
- Negative flagcolormap16
- 16Bit colormap (Monochrome only)x
- horizontal coordinatey
- vertical coordinate