Class ImageDataStream
java.lang.Object
java.io.InputStream
de.erichseifert.vectorgraphics2d.util.ImageDataStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final BufferedImageprivate final ImageDataStream.Interleavingprivate final booleanprivate final Rasterprivate final int[]private final int[]private final intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionImageDataStream(BufferedImage image, ImageDataStream.Interleaving interleaving) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbufferSampleValue(int band) getImage()private booleanintread()Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
image
-
width
private final int width -
height
private final int height -
interleaving
-
raster
-
opaque
private final boolean opaque -
byteBuffer
-
sampleValues
private final int[] sampleValues -
sampleSizes
private final int[] sampleSizes -
x
private int x -
y
private int y
-
-
Constructor Details
-
ImageDataStream
-
-
Method Details
-
getImage
-
getInterleaving
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
bufferSampleValue
private void bufferSampleValue(int band) -
nextSample
private boolean nextSample()
-