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
,SubIntervalIterable<ARGBType>
public class ARGBScreenImage extends ArrayImg<ARGBType,IntArray> implements AWTScreenImage
- Author:
- Stephan Saalfeld, Tobias Pietzsch
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.image.ColorModel
ARGB_COLOR_MODEL
protected int[]
data
protected java.awt.image.BufferedImage
image
-
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 anImage
withdata
.ARGBScreenImage(int width, int height, IntArray data)
Create anImage
withdata
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getData()
The underlying array holding the data.java.awt.image.BufferedImage
image()
-
Methods inherited from class net.imglib2.img.array.ArrayImg
copy, cursor, cursor, factory, iterationOrder, localizingCursor, localizingCursor, randomAccess, randomAccess, subIntervalIterationOrder, supportsOptimizedCursor, update
-
Methods inherited from class net.imglib2.img.AbstractNativeImg
createLinkedType, setLinkedType
-
Methods inherited from class net.imglib2.img.AbstractImg
dimension, dimensions, firstElement, iterator, 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
dimension, dimensions
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.IterableRealInterval
firstElement, size
-
-
-
-
Constructor Detail
-
ARGBScreenImage
public ARGBScreenImage(int width, int height)
-
ARGBScreenImage
public ARGBScreenImage(int width, int height, IntArray data)
Create anImage
withdata
. Writing to thedata
array will update theImage
.
-
ARGBScreenImage
public ARGBScreenImage(int width, int height, int[] data)
Create anImage
withdata
. Writing to thedata
array will update theImage
.
-
-
Method Detail
-
image
public java.awt.image.BufferedImage image()
- Specified by:
image
in interfaceAWTScreenImage
- Specified by:
image
in interfaceScreenImage<java.awt.Image>
-
getData
public int[] getData()
The underlying array holding the data. Writing to this array will change the content of theImage
returned byimage()
-
-