Package net.algart.external.awt
Class MatrixToBufferedImage.InterleavedToBandedRGB
java.lang.Object
net.algart.external.awt.MatrixToBufferedImage
net.algart.external.awt.MatrixToBufferedImage.InterleavedToBandedRGB
- Enclosing class:
MatrixToBufferedImage
-
Nested Class Summary
Nested classes/interfaces inherited from class net.algart.external.awt.MatrixToBufferedImage
MatrixToBufferedImage.InterleavedBGRToInterleaved, MatrixToBufferedImage.InterleavedRGBToInterleaved, MatrixToBufferedImage.InterleavedToBandedRGB, MatrixToBufferedImage.MonochromeToIndexed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
setAlwaysAddAlpha
(boolean alwaysAddAlpha) protected DataBuffer
toDataBuffer
(PArray interleavedArray, int bandCount) Actual method, on whichMatrixToBufferedImage.toDataBuffer(Matrix)
is based.toString()
Methods inherited from class net.algart.external.awt.MatrixToBufferedImage
bytesRequired, colorValue, getBandCount, getDataArray, getHeight, getWidth, isUnsignedInt32, palette, rgbAlphaMasks, setUnsignedInt32, toBufferedImage, toBufferedImage, toDataBuffer, toDataBufferBand0Filter
-
Constructor Details
-
InterleavedToBandedRGB
public InterleavedToBandedRGB()
-
-
Method Details
-
isAlwaysAddAlpha
public boolean isAlwaysAddAlpha() -
setAlwaysAddAlpha
-
toString
-
toDataBuffer
Description copied from class:MatrixToBufferedImage
Actual method, on whichMatrixToBufferedImage.toDataBuffer(Matrix)
is based.The passed AlgART array must be
direct accessible
.- Specified by:
toDataBuffer
in classMatrixToBufferedImage
- Parameters:
interleavedArray
- the interleaved data.bandCount
- the number of bands: if called fromMatrixToBufferedImage.toDataBuffer(Matrix)
, it is 1 for 2-dimensional matrix anddim(0)
for 3-dimensional matrix.- Returns:
- the newly allocated DataBuffer with the same data.
-