Class ARGBScreenImage
- java.lang.Object
-
- net.imglib2.img.AbstractImg<T>
-
- net.imglib2.img.AbstractNativeImg<T,A>
-
- net.imglib2.img.array.ArrayImg<ARGBType,IntArray>
-
- net.imglib2.display.screenimage.awt.ARGBScreenImage
-
- All Implemented Interfaces:
java.lang.Iterable<ARGBType>,Dimensions,AWTScreenImage,ScreenImage<java.awt.Image>,EuclideanSpace,Img<ARGBType>,NativeImg<ARGBType,IntArray>,Interval,IterableInterval<ARGBType>,IterableRealInterval<ARGBType>,RandomAccessible<ARGBType>,RandomAccessibleInterval<ARGBType>,RealInterval,Typed<ARGBType>,SubIntervalIterable<ARGBType>
public class ARGBScreenImage extends ArrayImg<ARGBType,IntArray> implements AWTScreenImage
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.image.ColorModelARGB_COLOR_MODELprotected int[]dataprotected java.awt.image.BufferedImageimage-
Fields inherited from class net.imglib2.img.AbstractNativeImg
entitiesPerPixel, linkedType, numEntities
-
Fields inherited from class net.imglib2.img.AbstractImg
dimension, max, n, numPixels
-
-
Constructor Summary
Constructors Constructor Description ARGBScreenImage(int width, int height)ARGBScreenImage(int width, int height, int[] data)Create anImagewithdata.ARGBScreenImage(int width, int height, IntArray data)Create anImagewithdata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getData()The underlying array holding the data.java.awt.image.BufferedImageimage()-
Methods inherited from class net.imglib2.img.array.ArrayImg
copy, cursor, cursor, factory, iterationOrder, localizingCursor, localizingCursor, localizingSpliterator, randomAccess, randomAccess, spliterator, subIntervalIterationOrder, supportsOptimizedCursor, update
-
Methods inherited from class net.imglib2.img.AbstractNativeImg
createLinkedType, getType, setLinkedType
-
Methods inherited from class net.imglib2.img.AbstractImg
dimension, dimensions, max, max, max, min, min, min, numDimensions, numElements, realMax, realMax, realMax, realMin, realMin, realMin, size, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Interval
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMin
-
Methods inherited from interface net.imglib2.IterableRealInterval
firstElement, getType, iterator, parallelStream, stream
-
Methods inherited from interface net.imglib2.RandomAccessible
getAt, getAt, getAt
-
Methods inherited from interface net.imglib2.RandomAccessibleInterval
size
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
-
-
-
Constructor Detail
-
ARGBScreenImage
public ARGBScreenImage(int width, int height)
-
ARGBScreenImage
public ARGBScreenImage(int width, int height, IntArray data)Create anImagewithdata. Writing to thedataarray will update theImage.
-
ARGBScreenImage
public ARGBScreenImage(int width, int height, int[] data)Create anImagewithdata. Writing to thedataarray will update theImage.
-
-
Method Detail
-
image
public java.awt.image.BufferedImage image()
- Specified by:
imagein interfaceAWTScreenImage- Specified by:
imagein interfaceScreenImage<java.awt.Image>
-
getData
public int[] getData()
The underlying array holding the data. Writing to this array will change the content of theImagereturned byimage()
-
-