public class RGBAIntBuffer extends RGBBuffer
Constructor and Description |
---|
RGBAIntBuffer(int sizeX1,
int sizeX2)
Creates a new 4-band packed integer buffer.
|
Modifier and Type | Method and Description |
---|---|
byte |
getBlueValue(int index)
Retrieves the Blue value for a particular pixel index.
|
int[] |
getDataBuffer()
Retrieves the data buffer that contains the pixel values.
|
byte |
getGreenValue(int index)
Retrieves the Green value for a particular pixel index.
|
byte |
getRedValue(int index)
Retrieves the Red value for a particular pixel index.
|
void |
setBlueValue(int index,
int value)
Sets the Blue value for a particular pixel index.
|
void |
setGreenValue(int index,
int value)
Sets the Green value for a particular pixel index.
|
void |
setRedValue(int index,
int value)
Sets the Red value for a particular pixel index.
|
void |
zero()
Zeros out (sets every pixel offset to zero) each band.
|
getBlueBand, getGreenBand, getRedBand, getSizeX1, getSizeX2
public RGBAIntBuffer(int sizeX1, int sizeX2)
sizeX1
- The number of pixels on the X1-axis. This is the X-axis
in the case of an XY-plane or XZ-plane.
Otherwise it is the Z-axis ZY-plane.sizeX2
- The number of pixels on the X2-axis. This is the Y-axis
in the case of an XY-plane or ZY-plane.
Otherwise it is the Z-axis XZ-plane.RGBBuffer.bands
public void setRedValue(int index, int value)
setRedValue
in class RGBBuffer
index
- The index in the band array.value
- The pixel value to set.public void setGreenValue(int index, int value)
setGreenValue
in class RGBBuffer
index
- The index in the band array.value
- The pixel value to set.public void setBlueValue(int index, int value)
setBlueValue
in class RGBBuffer
index
- The index in the band array.value
- The pixel value to set.public byte getRedValue(int index)
getRedValue
in class RGBBuffer
index
- The index in the band array.public byte getGreenValue(int index)
getGreenValue
in class RGBBuffer
index
- The index in the band array.public byte getBlueValue(int index)
getBlueValue
in class RGBBuffer
index
- The index in the band array.public int[] getDataBuffer()
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.