Class AWTScreenImageUtil
java.lang.Object
net.imglib2.display.screenimage.awt.AWTScreenImageUtil
Utility class to create
AWTScreenImage
s.
TODO: Add convenience methods to render RandomAccessibleInterval
s.- Author:
- Christian Dietz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends NativeType<T>>
ArrayImgAWTScreenImage<T, ?> emptyScreenImage
(T type, long[] dims) Get an appropriateAWTScreenImage
given a type and the dimensionality of the incoming image.
-
Constructor Details
-
AWTScreenImageUtil
public AWTScreenImageUtil()
-
-
Method Details
-
emptyScreenImage
public static <T extends NativeType<T>> ArrayImgAWTScreenImage<T,?> emptyScreenImage(T type, long[] dims) Get an appropriateAWTScreenImage
given a type and the dimensionality of the incoming image.Only the first two dimensions of the long[] dims are considered.
TODO: review if this is really the only solution to get it running with jenkins javac.- Parameters:
type
- type used to create emptyAWTScreenImage
dims
- dimensions of the resultingArrayImgAWTScreenImage
- Returns:
- // HACK: raw-cast of container to ArrayImgAWTScreenImage needed for Sun Java 6 compiler
-