public class IcyBufferedImage extends java.awt.image.BufferedImage implements IcyColorModelListener, ChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
IcyBufferedImage.FilterType
Deprecated.
Use
IcyBufferedImageUtil.FilterType instead. |
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BYTE
Deprecated.
|
static int |
TYPE_DOUBLE
Deprecated.
|
static int |
TYPE_FLOAT
Deprecated.
|
static int |
TYPE_INT
Deprecated.
|
static int |
TYPE_SHORT
Deprecated.
|
static int |
TYPE_UNDEFINED
Deprecated.
|
Constructor and Description |
---|
IcyBufferedImage(int width,
int height,
IcyColorModel cm)
Create an ICY formatted BufferedImage with specified width, height and IcyColorModel
type.
|
IcyBufferedImage(int width,
int height,
int numComponents,
DataType dataType)
Create an ICY formatted BufferedImage with specified width, height,
number of component and dataType. |
IcyBufferedImage(int width,
int height,
int numComponents,
int dataType)
Deprecated.
use
IcyBufferedImage(int, int, int, DataType) instead |
IcyBufferedImage(int width,
int height,
int numComponents,
int dataType,
boolean signed)
Deprecated.
use
IcyBufferedImage(int, int, int, DataType) instead |
IcyBufferedImage(int width,
int height,
java.lang.Object data)
Create a single channel Icy formatted BufferedImage with specified width, height and input
data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object[] data)
Create an Icy formatted BufferedImage with specified width, height and input data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object[] data,
boolean signed)
Create an Icy formatted BufferedImage with specified width, height and input data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object[] data,
boolean signed,
boolean autoUpdateChannelBounds)
Create an Icy formatted BufferedImage with specified width, height and input data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object data,
boolean signed)
Create a single channel Icy formatted BufferedImage with specified width, height and input
data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object data,
boolean signed,
boolean autoUpdateChannelBounds)
Create a single channel Icy formatted BufferedImage with specified width, height and input data.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IcyBufferedImageListener listener) |
void |
beginUpdate() |
void |
channelBoundsChanged(int channel)
notify image channels bounds has changed
|
void |
colorModelChanged(IcyColorModelEvent e) |
void |
componentBoundsChanged(int component)
Deprecated.
Use
channelBoundsChanged(int) instead. |
static IcyBufferedImage |
convert(java.awt.image.BufferedImage image)
Deprecated.
|
static IcyBufferedImage |
convert(java.util.List<java.awt.image.BufferedImage> imageList)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(java.awt.image.BufferedImage out)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(java.awt.image.BufferedImage out,
LUT lut)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(int imageType,
LUT lut)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(LUT lut,
int imageType)
Deprecated.
|
IcyBufferedImage |
convertToType(DataType dataType,
boolean rescale)
Deprecated.
|
IcyBufferedImage |
convertToType(DataType dataType,
Scaler scaler)
Deprecated.
|
IcyBufferedImage |
convertToType(int dataType,
boolean signed,
boolean rescale)
Deprecated.
|
IcyBufferedImage |
convertToType(int dataType,
boolean signed,
Scaler scaler)
Deprecated.
|
void |
copyColormap(java.awt.image.BufferedImage srcImage)
Deprecated.
Use
setColorMaps(BufferedImage) instead. |
void |
copyData(java.awt.image.BufferedImage srcImage)
Copy data from an image (notify data changed)
|
void |
copyData(java.awt.image.BufferedImage srcImage,
int srcChannel,
int dstChannel)
Copy data from an image (notify data changed)
|
boolean |
copyData(java.awt.image.ComponentSampleModel sampleModel,
java.awt.image.WritableRaster raster,
int srcChannel,
int dstChannel)
Copy channel data from a compatible sample model and writable raster (notify data changed).
|
void |
copyData(IcyBufferedImage srcImage,
java.awt.Rectangle srcRect,
java.awt.Point dstPt)
Copy data from an image (notify data changed)
|
void |
copyData(IcyBufferedImage srcImage,
java.awt.Rectangle srcRect,
java.awt.Point dstPt,
int srcChannel,
int dstChannel)
Copy data from an image (notify data changed)
|
void |
copyData(java.lang.Object data,
java.awt.Dimension dataDim,
boolean signed,
java.awt.Point dstPt,
int dstChannel)
Copy data to specified location from an data array.
|
LUT |
createCompatibleLUT()
create a compatible LUT for this image
|
LUT |
createCompatibleLUT(boolean createColorModel)
create a compatible LUT for this image.
|
static IcyBufferedImage |
createCompatibleThumbnailFrom(loci.formats.IFormatReader reader,
int z,
int t)
Deprecated.
|
static IcyBufferedImage |
createEmptyImage(int width,
int height,
IcyColorModel cm)
Deprecated.
Use
IcyBufferedImage(int, int, IcyColorModel) instead. |
static IcyBufferedImage |
createFrom(java.awt.image.BufferedImage image)
Create an IcyBufferedImage from a BufferedImage.
|
static IcyBufferedImage |
createFrom(loci.formats.IFormatReader reader,
int z,
int t)
Deprecated.
|
static IcyBufferedImage |
createFrom(loci.formats.IFormatReader reader,
int x,
int y,
int w,
int h,
int z,
int t,
int c)
Deprecated.
|
static IcyBufferedImage |
createFrom(java.util.List<? extends java.awt.image.BufferedImage> imageList)
Create an IcyBufferedImage (multi component) from a list of BufferedImage.
|
static IcyBufferedImage |
createFrom(javax.media.jai.PlanarImage image)
Create an IcyBufferedImage from a
PlanarImage . |
static IcyBufferedImage |
createFrom(javax.media.jai.PlanarImage image,
boolean signedDataType)
Create an IcyBufferedImage from a
PlanarImage . |
static IcyBufferedImage |
createThumbnailFrom(loci.formats.IFormatReader reader,
int z,
int t)
Deprecated.
|
void |
dataChanged()
notify image data has changed
|
void |
endUpdate() |
IcyBufferedImage |
extractBand(int bandNumber)
Deprecated.
|
IcyBufferedImage |
extractBands(java.util.List<java.lang.Integer> bandNumbers)
Deprecated.
|
IcyBufferedImage |
extractChannel(int channelNumber)
Deprecated.
|
IcyBufferedImage |
extractChannels(java.util.List<java.lang.Integer> channelNumbers)
Deprecated.
|
java.awt.image.BufferedImage |
getARGBImage()
Deprecated.
Use
IcyBufferedImageUtil.getARGBImage(IcyBufferedImage) instead. |
java.awt.image.BufferedImage |
getARGBImage(java.awt.image.BufferedImage out)
Deprecated.
|
java.awt.image.BufferedImage |
getARGBImage(LUT lut)
Deprecated.
|
java.awt.image.BufferedImage |
getARGBImage(LUT lut,
java.awt.image.BufferedImage out)
Deprecated.
|
boolean |
getAutoUpdateChannelBounds() |
java.awt.Rectangle |
getBounds()
Return 2D bounds of image {0, 0, sizeX, sizeY}
|
double[] |
getChannelBounds(int channel)
Get bounds (min and max values) for the specified channel.
|
double |
getChannelMax(int channel)
Get maximum value for the specified channel.
|
double |
getChannelMin(int channel)
Get the minimum value for the specified channel.
|
double[][] |
getChannelsBounds()
Get bounds (min and max values) for all channels.
|
double[] |
getChannelsGlobalBounds()
Get global bounds (min and max values) for all channels.
|
double[] |
getChannelsGlobalTypeBounds()
Get global type bounds (min and max values) for all channels.
|
double[][] |
getChannelsTypeBounds()
Get type bounds (min and max values) for all channels.
|
double[] |
getChannelTypeBounds(int channel)
Get type bounds (min and max values) for the specified channel.
|
double[] |
getChannelTypeGlobalBounds()
Deprecated.
Use
getChannelsGlobalTypeBounds() instead. |
double |
getChannelTypeMax(int channel)
Get the maximum type value for the specified channel.
|
double |
getChannelTypeMin(int channel)
Get the minimum type value for the specified channel.
|
IcyColorMap |
getColormap(int channel)
Deprecated.
Use
getColorMap(int) instead (different case). |
IcyColorMap |
getColorMap(int channel)
Return the colormap of the specified channel.
|
double[] |
getComponentAbsBounds(int component)
Deprecated.
Use
getChannelTypeBounds(int) instead. |
double |
getComponentAbsMaxValue(int component)
Deprecated.
Use
getChannelTypeMax(int) instead. |
double |
getComponentAbsMinValue(int component)
Deprecated.
Use
getChannelTypeMin(int) instead. |
double[][] |
getComponentsAbsBounds()
Deprecated.
Use
getChannelsTypeBounds() instead. |
double[][] |
getComponentsUserBounds()
Deprecated.
Use
getChannelsBounds() instead. |
double[] |
getComponentUserBounds(int component)
Deprecated.
Use
getChannelBounds(int) instead. |
double |
getComponentUserMaxValue(int component)
Deprecated.
Use
getChannelMax(int) instead. |
double |
getComponentUserMinValue(int component)
Deprecated.
Use
getChannelMin(int) instead. |
IcyBufferedImage |
getCopy()
Deprecated.
Use
IcyBufferedImageUtil.getCopy(IcyBufferedImage) instead |
double |
getData(int x,
int y,
int c)
Return the value located at (x, y, c) position as a double
whatever is the internal data type
|
byte |
getDataAsByte(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
double |
getDataAsDouble(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
float |
getDataAsFloat(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
int |
getDataAsInt(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
short |
getDataAsShort(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
java.lang.Object |
getDataCopyC(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
java.lang.Object |
getDataCopyC(int x,
int y,
java.lang.Object out,
int offset)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
byte[] |
getDataCopyCAsByte(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
byte[] |
getDataCopyCAsByte(int x,
int y,
byte[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
double[] |
getDataCopyCAsDouble(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
double[] |
getDataCopyCAsDouble(int x,
int y,
double[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
float[] |
getDataCopyCAsFloat(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
float[] |
getDataCopyCAsFloat(int x,
int y,
float[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
int[] |
getDataCopyCAsInt(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
int[] |
getDataCopyCAsInt(int x,
int y,
int[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
short[] |
getDataCopyCAsShort(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
short[] |
getDataCopyCAsShort(int x,
int y,
short[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
java.lang.Object |
getDataCopyCXY()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
java.lang.Object |
getDataCopyCXY(java.lang.Object out,
int offset)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
byte[] |
getDataCopyCXYAsByte()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
byte[] |
getDataCopyCXYAsByte(byte[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
double[] |
getDataCopyCXYAsDouble()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
double[] |
getDataCopyCXYAsDouble(double[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
float[] |
getDataCopyCXYAsFloat()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
float[] |
getDataCopyCXYAsFloat(float[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
int[] |
getDataCopyCXYAsInt()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
int[] |
getDataCopyCXYAsInt(int[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
short[] |
getDataCopyCXYAsShort()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
short[] |
getDataCopyCXYAsShort(short[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
java.lang.Object |
getDataCopyXY(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
java.lang.Object |
getDataCopyXY(int c,
java.lang.Object out,
int offset)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
byte[] |
getDataCopyXYAsByte(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
byte[] |
getDataCopyXYAsByte(int c,
byte[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
double[] |
getDataCopyXYAsDouble(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
double[] |
getDataCopyXYAsDouble(int c,
double[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
float[] |
getDataCopyXYAsFloat(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
float[] |
getDataCopyXYAsFloat(int c,
float[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
int[] |
getDataCopyXYAsInt(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
int[] |
getDataCopyXYAsInt(int c,
int[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
short[] |
getDataCopyXYAsShort(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
short[] |
getDataCopyXYAsShort(int c,
short[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
java.lang.Object |
getDataCopyXYC()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
java.lang.Object |
getDataCopyXYC(java.lang.Object out,
int offset)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
If (out ! |
byte[] |
getDataCopyXYCAsByte()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
byte[] |
getDataCopyXYCAsByte(byte[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
double[] |
getDataCopyXYCAsDouble()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
double[] |
getDataCopyXYCAsDouble(double[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
float[] |
getDataCopyXYCAsFloat()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
float[] |
getDataCopyXYCAsFloat(float[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
int[] |
getDataCopyXYCAsInt()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
int[] |
getDataCopyXYCAsInt(int[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
short[] |
getDataCopyXYCAsShort()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
short[] |
getDataCopyXYCAsShort(short[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
DataType |
getDataType_()
Return the data type of this image
|
int |
getDataType()
Deprecated.
use
getDataType_() instead |
double[] |
getDataTypeBounds()
Get data type bounds (min and max values)
|
double |
getDataTypeMax()
Get the data type maximum value.
|
double |
getDataTypeMin()
Get the data type minimum value.
|
java.lang.Object |
getDataXY(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
byte[] |
getDataXYAsByte(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
double[] |
getDataXYAsDouble(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
float[] |
getDataXYAsFloat(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
int[] |
getDataXYAsInt(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
short[] |
getDataXYAsShort(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
java.lang.Object |
getDataXYC()
Return a direct reference to internal 2D array data [C][XY]
|
byte[][] |
getDataXYCAsByte()
Return a direct reference to internal 2D array data [C][XY]
|
double[][] |
getDataXYCAsDouble()
Return a direct reference to internal 2D array data [C][XY]
|
float[][] |
getDataXYCAsFloat()
Return a direct reference to internal 2D array data [C][XY]
|
int[][] |
getDataXYCAsInt()
Return a direct reference to internal 2D array data [C][XY]
|
short[][] |
getDataXYCAsShort()
Return a direct reference to internal 2D array data [C][XY]
|
java.awt.Dimension |
getDimension()
Return 2D dimension of image {sizeX, sizeY}
|
double[] |
getGlobalChannelTypeBounds()
Deprecated.
Use
getChannelTypeGlobalBounds() instead. |
double[] |
getGlobalComponentAbsBounds()
Deprecated.
Use
getGlobalChannelTypeBounds() instead. |
IcyColorModel |
getIcyColorModel()
Return the IcyColorModel
|
IcyBufferedImage |
getImage(int c)
Return a single component image corresponding to the component c of current image.
|
LUT |
getLUT()
Deprecated.
No attached LUT to an image.
Use createCompatibleLUT(boolean) instead. |
int |
getNumComponents()
Deprecated.
Use
getSizeC() instead. |
int |
getNumSample()
Return the number of sample.
|
int |
getOffset(int x,
int y)
Return the offset for specified (x, y) location
|
byte[] |
getRawData(boolean little)
Return raw data for all components as an array of byte
|
byte[] |
getRawData(byte[] out,
int offset,
boolean little)
Return raw data for all components as an array of byte
|
byte[] |
getRawData(int c,
boolean little)
Return raw data component as an array of byte
|
byte[] |
getRawData(int c,
byte[] out,
int offset,
boolean little)
Return raw data component as an array of byte
|
int |
getRGB(int x,
int y,
LUT lut)
Same as getRGB but by using the specified LUT instead of internal one
|
IcyBufferedImage |
getScaledCopy(int width,
int height)
Deprecated.
|
IcyBufferedImage |
getScaledCopy(int width,
int height,
boolean resizeContent,
int xAlign,
int yAlign)
Deprecated.
|
IcyBufferedImage |
getScaledCopy(int width,
int height,
boolean resizeContent,
int xAlign,
int yAlign,
IcyBufferedImage.FilterType filterType)
|
IcyBufferedImage |
getScaledCopy(int width,
int height,
IcyBufferedImage.FilterType filterType)
Deprecated.
|
int |
getSizeC() |
int |
getSizeX() |
int |
getSizeY() |
IcyBufferedImage |
getSubimage(int x,
int y,
int w,
int h)
Deprecated.
|
IcyBufferedImage |
getSubImageCopy(int x,
int y,
int w,
int h)
Deprecated.
|
boolean |
isFloatDataType()
Return true if this is a float data type image
|
boolean |
isInside(double x,
double y)
Return true if point of coordinate (x, y) is inside the image
|
boolean |
isInside(int x,
int y)
Return true if point of coordinate (x, y) is inside the image
|
boolean |
isInside(java.awt.Point p)
Return true if point is inside the image
|
boolean |
isSignedDataType()
Return true if this is a signed data type image
|
boolean |
isUpdating() |
void |
onChanged(CollapsibleEvent object)
fire changed event
|
void |
removeListener(IcyBufferedImageListener listener) |
void |
setAutoUpdateChannelBounds(boolean value)
If set to
true (default) then channel bounds will be automatically recalculated
when image data is modified. |
void |
setChannelBounds(int channel,
double min,
double max)
Set channel bounds (min and max values)
|
void |
setChannelMax(int channel,
double max)
Set channel maximum value.
|
void |
setChannelMin(int channel,
double min)
Set channel minimum value.
|
void |
setChannelsBounds(double[][] bounds)
Set all channel bounds (min and max values)
|
void |
setChannelsTypeBounds(double[][] bounds)
Set the preferred data type bounds (min and max values) for all channels.
|
void |
setChannelTypeBounds(int channel,
double min,
double max)
/**
Set the preferred data type min and max values for the specified channel.
|
void |
setChannelTypeMax(int channel,
double max)
Set the preferred data type maximum value for the specified channel.
|
void |
setChannelTypeMin(int channel,
double min)
Set the preferred data type minimum value for the specified channel.
|
void |
setColormap(int channel,
IcyColorMap map)
Deprecated.
Use
setColorMap(int, IcyColorMap, boolean) instead. |
void |
setColorMap(int channel,
IcyColorMap map,
boolean setAlpha)
Set the colormap for the specified channel.
|
void |
setColormaps(java.awt.image.BufferedImage srcImage)
Deprecated.
Use
setColorMaps(BufferedImage) instead (different case). |
void |
setColorMaps(java.awt.image.BufferedImage srcImage)
Set colormaps from specified image.
|
void |
setComponentAbsBounds(int component,
double[] bounds)
Deprecated.
Use
setChannelTypeBounds(int, double, double) instead. |
void |
setComponentAbsBounds(int component,
double min,
double max)
Deprecated.
Use
setChannelTypeBounds(int, double, double) instead. |
void |
setComponentAbsMaxValue(int component,
double max)
Deprecated.
Use
setChannelTypeMax(int, double) instead. |
void |
setComponentAbsMinValue(int component,
double min)
Deprecated.
Use
setChannelTypeMin(int, double) instead. |
void |
setComponentsAbsBounds(double[][] bounds)
Deprecated.
Use
setChannelsTypeBounds(double[][]) instead. |
void |
setComponentsUserBounds(double[][] bounds)
Deprecated.
Use
setChannelsBounds(double[][]) instead. |
void |
setComponentUserBounds(int component,
double[] bounds)
Deprecated.
Use
setChannelBounds(int, double, double) instead. |
void |
setComponentUserBounds(int component,
double min,
double max)
Deprecated.
Use
setChannelBounds(int, double, double) instead |
void |
setComponentUserMaxValue(int component,
double max)
Deprecated.
Use
setChannelMax(int, double) instead. |
void |
setComponentUserMinValue(int component,
double min)
Deprecated.
Use
setChannelMin(int, double) instead. |
void |
setData(int x,
int y,
int c,
double value)
Set the value located at (x, y, c) position as a double
whatever is the internal data type
|
void |
setDataAsByte(int x,
int y,
int c,
byte value)
Set the value located at (x, y, c) position
|
void |
setDataAsDouble(int x,
int y,
int c,
double value)
Set the value located at (x, y, c) position
|
void |
setDataAsFloat(int x,
int y,
int c,
float value)
Set the value located at (x, y, c) position
|
void |
setDataAsInt(int x,
int y,
int c,
int value)
Set the value located at (x, y, c) position
|
void |
setDataAsShort(int x,
int y,
int c,
short value)
Set the value located at (x, y, c) position
|
void |
setDataC(int x,
int y,
java.lang.Object values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsByte(int x,
int y,
byte[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsDouble(int x,
int y,
double[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsFloat(int x,
int y,
float[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsInt(int x,
int y,
int[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsShort(int x,
int y,
short[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataXY(int c,
java.lang.Object values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsByte(int c,
byte[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsDouble(int c,
double[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsFloat(int c,
float[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsInt(int c,
int[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsShort(int c,
short[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setRawData(byte[] data,
boolean little)
Set raw data for all components from an array of byte (notify data changed)
|
void |
setRawData(byte[] data,
int offset,
boolean little)
Set raw data for all components from an array of byte (notify data changed).
|
void |
setRawData(int c,
byte[] data,
boolean little)
Set raw data component from an array of byte (notify data changed)
|
void |
setRawData(int c,
byte[] data,
int offset,
boolean little)
Set raw data component from an array of byte (notify data changed)
|
void |
translate(int dx,
int dy)
Deprecated.
|
void |
translate(int dx,
int dy,
int channel)
Deprecated.
|
void |
updateChannelsBounds()
Update channels bounds (min and max values).
|
void |
updateComponentsBounds(boolean updateUserBounds)
Deprecated.
Use
updateChannelsBounds() instead. |
void |
updateComponentsBounds(boolean updateChannelBounds,
boolean adjustByteToo)
Deprecated.
Use
updateChannelsBounds() instead. |
addTileObserver, coerceData, copyData, createGraphics, getAlphaRaster, getColorModel, getData, getData, getGraphics, getHeight, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getProperty, getPropertyNames, getRaster, getRGB, getRGB, getSampleModel, getSource, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTransparency, getType, getWidth, getWidth, getWritableTile, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver, setData, setRGB, setRGB, toString
@Deprecated public static int TYPE_BYTE
@Deprecated public static int TYPE_DOUBLE
@Deprecated public static int TYPE_FLOAT
@Deprecated public static int TYPE_INT
@Deprecated public static int TYPE_SHORT
@Deprecated public static int TYPE_UNDEFINED
public IcyBufferedImage(int width, int height, java.lang.Object[] data, boolean signed, boolean autoUpdateChannelBounds)
img = new IcyBufferedImage(640, 480, new byte[3][640 * 480], true);
width
- height
- data
- image datawidth * height
signed
- use signed data for data typeautoUpdateChannelBounds
- If true then channel bounds are automatically calculated.updateChannelsBounds()
or #setCpublic IcyBufferedImage(int width, int height, java.lang.Object[] data, boolean signed)
img = new IcyBufferedImage(640, 480, new byte[3][640 * 480]);
width
- height
- data
- image datawidth * height
signed
- use signed data for data typepublic IcyBufferedImage(int width, int height, java.lang.Object[] data)
img = new IcyBufferedImage(640, 480, new byte[3][640 * 480]);
width
- height
- data
- image datawidth * height
public IcyBufferedImage(int width, int height, java.lang.Object data, boolean signed, boolean autoUpdateChannelBounds)
img = new IcyBufferedImage(640, 480, new byte[640 * 480], true);
width
- height
- data
- image data array.width * height
.signed
- use signed data for data typeautoUpdateChannelBounds
- If true then channel bounds are automatically calculated.updateChannelsBounds()
or #setCIcyBufferedImage(int, int, Object[], boolean, boolean)
public IcyBufferedImage(int width, int height, java.lang.Object data, boolean signed)
img = new IcyBufferedImage(640, 480, new byte[640 * 480]);
width
- height
- data
- image datawidth * height
.signed
- use signed data for data typepublic IcyBufferedImage(int width, int height, java.lang.Object data)
img = new IcyBufferedImage(640, 480, new byte[640 * 480]);
width
- height
- data
- image datawidth * height
.public IcyBufferedImage(int width, int height, int numComponents, DataType dataType)
width
- height
- numComponents
- dataType
- image data type DataType
public IcyBufferedImage(int width, int height, IcyColorModel cm)
@Deprecated public IcyBufferedImage(int width, int height, int numComponents, int dataType, boolean signed)
IcyBufferedImage(int, int, int, DataType)
instead@Deprecated public IcyBufferedImage(int width, int height, int numComponents, int dataType)
IcyBufferedImage(int, int, int, DataType)
instead@Deprecated public static IcyBufferedImage convert(java.util.List<java.awt.image.BufferedImage> imageList)
createFrom(java.util.List<? extends java.awt.image.BufferedImage>)
insteadimageList
- list of BufferedImage
IcyBufferedImage
public static IcyBufferedImage createFrom(java.util.List<? extends java.awt.image.BufferedImage> imageList) throws java.lang.IllegalArgumentException
imageList
- list of BufferedImage
IcyBufferedImage
java.lang.IllegalArgumentException
- if imageList is empty or contains incompatible images.@Deprecated public static IcyBufferedImage convert(java.awt.image.BufferedImage image)
createFrom(java.util.List<? extends java.awt.image.BufferedImage>)
insteadimage
- BufferedImage
IcyBufferedImage
public static IcyBufferedImage createFrom(javax.media.jai.PlanarImage image, boolean signedDataType)
PlanarImage
.image
- PlanarImage
IcyBufferedImage
public static IcyBufferedImage createFrom(javax.media.jai.PlanarImage image)
PlanarImage
.image
- PlanarImage
IcyBufferedImage
public static IcyBufferedImage createFrom(java.awt.image.BufferedImage image)
image
- BufferedImage
IcyBufferedImage
@Deprecated public static IcyBufferedImage createCompatibleThumbnailFrom(loci.formats.IFormatReader reader, int z, int t) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getThumbnailCompatible(IFormatReader, int, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createThumbnailFrom(loci.formats.IFormatReader reader, int z, int t) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getThumbnail(IFormatReader, int, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createFrom(loci.formats.IFormatReader reader, int x, int y, int w, int h, int z, int t, int c) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getImage(IFormatReader, Rectangle, int, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createFrom(loci.formats.IFormatReader reader, int z, int t) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getImage(IFormatReader, Rectangle, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createEmptyImage(int width, int height, IcyColorModel cm)
IcyBufferedImage(int, int, IcyColorModel)
instead.public boolean getAutoUpdateChannelBounds()
setAutoUpdateChannelBounds(boolean)
public void setAutoUpdateChannelBounds(boolean value)
true
(default) then channel bounds will be automatically recalculated
when image data is modified.beginUpdate()
... endUpdate()
block to avoid
severals recalculation.@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(java.awt.image.BufferedImage out, LUT lut)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage, LUT)
instead.@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(java.awt.image.BufferedImage out)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage(LUT lut, java.awt.image.BufferedImage out)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage, LUT)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage(java.awt.image.BufferedImage out)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage(LUT lut)
IcyBufferedImageUtil.getARGBImage(IcyBufferedImage, LUT)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage()
IcyBufferedImageUtil.getARGBImage(IcyBufferedImage)
instead.@Deprecated public IcyBufferedImage convertToType(DataType dataType, Scaler scaler)
IcyBufferedImageUtil.convertType(IcyBufferedImage, DataType, Scaler[])
instead.@Deprecated public IcyBufferedImage convertToType(int dataType, boolean signed, Scaler scaler)
IcyBufferedImageUtil.convertType(IcyBufferedImage,DataType, Scaler[])
instead.@Deprecated public IcyBufferedImage convertToType(DataType dataType, boolean rescale)
IcyBufferedImageUtil.convertToType(IcyBufferedImage, DataType, boolean)
instead.@Deprecated public IcyBufferedImage convertToType(int dataType, boolean signed, boolean rescale)
IcyBufferedImageUtil.convertToType(IcyBufferedImage,DataType, boolean)
instead@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(LUT lut, int imageType)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, int, LUT)
instead@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(int imageType, LUT lut)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, int, LUT)
instead@Deprecated public IcyBufferedImage getCopy()
IcyBufferedImageUtil.getCopy(IcyBufferedImage)
instead@Deprecated public IcyBufferedImage getSubImageCopy(int x, int y, int w, int h)
IcyBufferedImageUtil.getSubImage(IcyBufferedImage, int, int, int, int)
instead@Deprecated public IcyBufferedImage getSubimage(int x, int y, int w, int h)
getSubimage
in class java.awt.image.BufferedImage
public IcyBufferedImage getImage(int c)
(c == -1)
then current image is directly returned((c == 0) || (sizeC == 1))
then current image is directly returned((c < 0) || (c >= sizeC))
then it returns null
IcyBufferedImageUtil.extractChannel(IcyBufferedImage, int)
@Deprecated public IcyBufferedImage extractChannel(int channelNumber)
IcyBufferedImageUtil.extractChannel(IcyBufferedImage, int)
instead.@Deprecated public IcyBufferedImage extractChannels(java.util.List<java.lang.Integer> channelNumbers)
IcyBufferedImageUtil.extractChannels(IcyBufferedImage, List)
instead.@Deprecated public IcyBufferedImage extractBand(int bandNumber)
IcyBufferedImageUtil.extractChannel(IcyBufferedImage, int)
instead@Deprecated public IcyBufferedImage extractBands(java.util.List<java.lang.Integer> bandNumbers)
IcyBufferedImageUtil.extractChannels(IcyBufferedImage, List)
instead@Deprecated public IcyBufferedImage getScaledCopy(int width, int height, boolean resizeContent, int xAlign, int yAlign, IcyBufferedImage.FilterType filterType)
@Deprecated public IcyBufferedImage getScaledCopy(int width, int height, boolean resizeContent, int xAlign, int yAlign)
IcyBufferedImageUtil.scale(IcyBufferedImage, int, int, boolean, int, int)
instead.@Deprecated public IcyBufferedImage getScaledCopy(int width, int height, IcyBufferedImage.FilterType filterType)
IcyBufferedImageUtil.scale(IcyBufferedImage, int, int, IcyBufferedImageUtil.FilterType)
instead.@Deprecated public IcyBufferedImage getScaledCopy(int width, int height)
IcyBufferedImageUtil.scale(IcyBufferedImage, int, int)
instead.@Deprecated public void translate(int dx, int dy, int channel)
IcyBufferedImageUtil.translate(IcyBufferedImage, int, int, int)
instead.@Deprecated public void translate(int dx, int dy)
IcyBufferedImageUtil.translate(IcyBufferedImage, int, int)
instead.public double getDataTypeMin()
public double getDataTypeMax()
public double[] getDataTypeBounds()
public double getChannelTypeMin(int channel)
public double getChannelTypeMax(int channel)
public double[] getChannelTypeBounds(int channel)
public double[][] getChannelsTypeBounds()
public double[] getChannelsGlobalTypeBounds()
@Deprecated public double[] getChannelTypeGlobalBounds()
getChannelsGlobalTypeBounds()
instead.@Deprecated public double[] getGlobalChannelTypeBounds()
getChannelTypeGlobalBounds()
instead.@Deprecated public double getComponentAbsMinValue(int component)
getChannelTypeMin(int)
instead.@Deprecated public double getComponentAbsMaxValue(int component)
getChannelTypeMax(int)
instead.@Deprecated public double[] getComponentAbsBounds(int component)
getChannelTypeBounds(int)
instead.@Deprecated public double[][] getComponentsAbsBounds()
getChannelsTypeBounds()
instead.@Deprecated public double[] getGlobalComponentAbsBounds()
getGlobalChannelTypeBounds()
instead.public double getChannelMin(int channel)
public double getChannelMax(int channel)
public double[] getChannelBounds(int channel)
public double[][] getChannelsBounds()
public double[] getChannelsGlobalBounds()
@Deprecated public double getComponentUserMinValue(int component)
getChannelMin(int)
instead.@Deprecated public double getComponentUserMaxValue(int component)
getChannelMax(int)
instead.@Deprecated public double[] getComponentUserBounds(int component)
getChannelBounds(int)
instead.@Deprecated public double[][] getComponentsUserBounds()
getChannelsBounds()
instead.public void setChannelTypeMin(int channel, double min)
public void setChannelTypeMax(int channel, double max)
public void setChannelTypeBounds(int channel, double min, double max)
public void setChannelsTypeBounds(double[][] bounds)
@Deprecated public void setComponentAbsMinValue(int component, double min)
setChannelTypeMin(int, double)
instead.@Deprecated public void setComponentAbsMaxValue(int component, double max)
setChannelTypeMax(int, double)
instead.@Deprecated public void setComponentAbsBounds(int component, double[] bounds)
setChannelTypeBounds(int, double, double)
instead.@Deprecated public void setComponentAbsBounds(int component, double min, double max)
setChannelTypeBounds(int, double, double)
instead.@Deprecated public void setComponentsAbsBounds(double[][] bounds)
setChannelsTypeBounds(double[][])
instead.public void setChannelMin(int channel, double min)
public void setChannelMax(int channel, double max)
public void setChannelBounds(int channel, double min, double max)
public void setChannelsBounds(double[][] bounds)
@Deprecated public void setComponentUserMinValue(int component, double min)
setChannelMin(int, double)
instead.@Deprecated public void setComponentUserMaxValue(int component, double max)
setChannelMax(int, double)
instead.@Deprecated public void setComponentUserBounds(int component, double[] bounds)
setChannelBounds(int, double, double)
instead.@Deprecated public void setComponentUserBounds(int component, double min, double max)
setChannelBounds(int, double, double)
instead@Deprecated public void setComponentsUserBounds(double[][] bounds)
setChannelsBounds(double[][])
instead.public void updateChannelsBounds()
@Deprecated public void updateComponentsBounds(boolean updateChannelBounds, boolean adjustByteToo)
updateChannelsBounds()
instead.@Deprecated public void updateComponentsBounds(boolean updateUserBounds)
updateChannelsBounds()
instead.public boolean isInside(java.awt.Point p)
public boolean isInside(int x, int y)
public boolean isInside(double x, double y)
public IcyColorModel getIcyColorModel()
public DataType getDataType_()
DataType
@Deprecated public int getDataType()
getDataType_()
insteadpublic boolean isFloatDataType()
public boolean isSignedDataType()
@Deprecated public int getNumComponents()
getSizeC()
instead.public int getSizeC()
public int getSizeX()
public int getSizeY()
public java.awt.Dimension getDimension()
public java.awt.Rectangle getBounds()
public int getNumSample()
getSizeX() * getSizeY() * getSizeC()
public int getOffset(int x, int y)
public LUT createCompatibleLUT(boolean createColorModel)
createColorModel
- set to true
to create a LUT using a new compatible ColorModel else it
will use the image
internal ColorModelpublic LUT createCompatibleLUT()
public java.lang.Object getDataXYC()
public java.lang.Object getDataXY(int c)
public java.lang.Object getDataCopyXYC()
public java.lang.Object getDataCopyXYC(java.lang.Object out, int offset)
public java.lang.Object getDataCopyXY(int c)
public java.lang.Object getDataCopyXY(int c, java.lang.Object out, int offset)
public java.lang.Object getDataCopyCXY()
public java.lang.Object getDataCopyCXY(java.lang.Object out, int offset)
public java.lang.Object getDataCopyC(int x, int y)
public java.lang.Object getDataCopyC(int x, int y, java.lang.Object out, int offset)
public void setDataXY(int c, java.lang.Object values)
public void setDataC(int x, int y, java.lang.Object values)
public byte[][] getDataXYCAsByte()
public short[][] getDataXYCAsShort()
public int[][] getDataXYCAsInt()
public float[][] getDataXYCAsFloat()
public double[][] getDataXYCAsDouble()
public byte[] getDataXYAsByte(int c)
public short[] getDataXYAsShort(int c)
public int[] getDataXYAsInt(int c)
public float[] getDataXYAsFloat(int c)
public double[] getDataXYAsDouble(int c)
public byte[] getDataCopyXYCAsByte()
public byte[] getDataCopyXYCAsByte(byte[] out, int off)
public short[] getDataCopyXYCAsShort()
public short[] getDataCopyXYCAsShort(short[] out, int off)
public int[] getDataCopyXYCAsInt()
public int[] getDataCopyXYCAsInt(int[] out, int off)
public float[] getDataCopyXYCAsFloat()
public float[] getDataCopyXYCAsFloat(float[] out, int off)
public double[] getDataCopyXYCAsDouble()
public double[] getDataCopyXYCAsDouble(double[] out, int off)
public byte[] getDataCopyXYAsByte(int c)
public byte[] getDataCopyXYAsByte(int c, byte[] out, int off)
public short[] getDataCopyXYAsShort(int c)
public short[] getDataCopyXYAsShort(int c, short[] out, int off)
public int[] getDataCopyXYAsInt(int c)
public int[] getDataCopyXYAsInt(int c, int[] out, int off)
public float[] getDataCopyXYAsFloat(int c)
public float[] getDataCopyXYAsFloat(int c, float[] out, int off)
public double[] getDataCopyXYAsDouble(int c)
public double[] getDataCopyXYAsDouble(int c, double[] out, int off)
public byte[] getDataCopyCXYAsByte()
public byte[] getDataCopyCXYAsByte(byte[] out, int off)
public short[] getDataCopyCXYAsShort()
public short[] getDataCopyCXYAsShort(short[] out, int off)
public int[] getDataCopyCXYAsInt()
public int[] getDataCopyCXYAsInt(int[] out, int off)
public float[] getDataCopyCXYAsFloat()
public float[] getDataCopyCXYAsFloat(float[] out, int off)
public double[] getDataCopyCXYAsDouble()
public double[] getDataCopyCXYAsDouble(double[] out, int off)
public byte[] getDataCopyCAsByte(int x, int y)
public byte[] getDataCopyCAsByte(int x, int y, byte[] out, int off)
public short[] getDataCopyCAsShort(int x, int y)
public short[] getDataCopyCAsShort(int x, int y, short[] out, int off)
public int[] getDataCopyCAsInt(int x, int y)
public int[] getDataCopyCAsInt(int x, int y, int[] out, int off)
public float[] getDataCopyCAsFloat(int x, int y)
public float[] getDataCopyCAsFloat(int x, int y, float[] out, int off)
public double[] getDataCopyCAsDouble(int x, int y)
public double[] getDataCopyCAsDouble(int x, int y, double[] out, int off)
public void setDataXYAsByte(int c, byte[] values)
public void setDataXYAsShort(int c, short[] values)
public void setDataXYAsInt(int c, int[] values)
public void setDataXYAsFloat(int c, float[] values)
public void setDataXYAsDouble(int c, double[] values)
public void setDataCAsByte(int x, int y, byte[] values)
public void setDataCAsShort(int x, int y, short[] values)
public void setDataCAsInt(int x, int y, int[] values)
public void setDataCAsFloat(int x, int y, float[] values)
public void setDataCAsDouble(int x, int y, double[] values)
public double getData(int x, int y, int c)
public void setData(int x, int y, int c, double value)
public byte getDataAsByte(int x, int y, int c)
public void setDataAsByte(int x, int y, int c, byte value)
public short getDataAsShort(int x, int y, int c)
public void setDataAsShort(int x, int y, int c, short value)
public int getDataAsInt(int x, int y, int c)
public void setDataAsInt(int x, int y, int c, int value)
public float getDataAsFloat(int x, int y, int c)
public void setDataAsFloat(int x, int y, int c, float value)
public double getDataAsDouble(int x, int y, int c)
public void setDataAsDouble(int x, int y, int c, double value)
public int getRGB(int x, int y, LUT lut)
BufferedImage.getRGB(int, int)
public boolean copyData(java.awt.image.ComponentSampleModel sampleModel, java.awt.image.WritableRaster raster, int srcChannel, int dstChannel)
sampleModel
- source sample modelraster
- source writable raster to read data fromsrcChannel
- source channel (-1 for all channels)dstChannel
- destination channel (only significant if source channel != -1)true
if the copy operation succeed, false
otherwisepublic void copyData(java.lang.Object data, java.awt.Dimension dataDim, boolean signed, java.awt.Point dstPt, int dstChannel)
data
- source data array (should be same type than image data type)dataDim
- source data dimension (array length should be >= Dimension.width * Dimension.heigth)signed
- if the source data array should be considered as signed data (meaningful for integer
data type only)dstPt
- destination X,Y position (assume [0,0] if null)dstChannel
- destination channelpublic void copyData(IcyBufferedImage srcImage, java.awt.Rectangle srcRect, java.awt.Point dstPt, int srcChannel, int dstChannel)
srcImage
- source imagesrcRect
- source region to copy (assume whole image if null)dstPt
- destination X,Y position (assume [0,0] if null)srcChannel
- source channel (-1 for all channels)dstChannel
- destination channel (only significant if source channel != -1)public void copyData(IcyBufferedImage srcImage, java.awt.Rectangle srcRect, java.awt.Point dstPt)
srcImage
- source imagesrcRect
- source region to copy (assume whole image if null)dstPt
- destination (assume [0,0] if null)public void copyData(java.awt.image.BufferedImage srcImage, int srcChannel, int dstChannel)
srcImage
- source imagesrcChannel
- source channel to copy (-1 for all channels)dstChannel
- destination channel to receive data (only significant if source channel != -1)public void copyData(java.awt.image.BufferedImage srcImage)
srcImage
- source imagepublic byte[] getRawData(int c, byte[] out, int offset, boolean little)
c
- component indexout
- output array (can be null)offset
- output offsetlittle
- little endian orderpublic byte[] getRawData(int c, boolean little)
c
- component indexlittle
- little endian orderpublic byte[] getRawData(byte[] out, int offset, boolean little)
out
- output array (can be null)offset
- output offsetlittle
- little endian orderpublic byte[] getRawData(boolean little)
little
- little endian orderpublic void setRawData(int c, byte[] data, int offset, boolean little)
c
- component indexdata
- data as byte arrayoffset
- input offsetlittle
- little endian orderpublic void setRawData(int c, byte[] data, boolean little)
c
- component indexdata
- data as byte arraylittle
- little endian orderpublic void setRawData(byte[] data, int offset, boolean little)
data
- data as byte arrayoffset
- input offsetlittle
- little endian orderpublic void setRawData(byte[] data, boolean little)
data
- data as byte arraylittle
- little endian orderpublic IcyColorMap getColorMap(int channel)
@Deprecated public IcyColorMap getColormap(int channel)
getColorMap(int)
instead (different case).@Deprecated public void copyColormap(java.awt.image.BufferedImage srcImage)
setColorMaps(BufferedImage)
instead.public void setColorMaps(java.awt.image.BufferedImage srcImage)
@Deprecated public void setColormaps(java.awt.image.BufferedImage srcImage)
setColorMaps(BufferedImage)
instead (different case).public void setColorMap(int channel, IcyColorMap map, boolean setAlpha)
channel
- channel we want to set the colormapmap
- source colorspace to copysetAlpha
- also set the alpha information@Deprecated public void setColormap(int channel, IcyColorMap map)
setColorMap(int, IcyColorMap, boolean)
instead.public void dataChanged()
public void channelBoundsChanged(int channel)
@Deprecated public void componentBoundsChanged(int component)
channelBoundsChanged(int)
instead.public void addListener(IcyBufferedImageListener listener)
public void removeListener(IcyBufferedImageListener listener)
public void beginUpdate()
public void endUpdate()
public boolean isUpdating()
public void onChanged(CollapsibleEvent object)
ChangeListener
onChanged
in interface ChangeListener
public void colorModelChanged(IcyColorModelEvent e)
colorModelChanged
in interface IcyColorModelListener