Class AWTScreenImageUtil
- java.lang.Object
-
- net.imglib2.display.screenimage.awt.AWTScreenImageUtil
-
public class AWTScreenImageUtil extends java.lang.ObjectUtility class to createAWTScreenImages. TODO: Add convenience methods to renderRandomAccessibleIntervals.
-
-
Constructor Summary
Constructors Constructor Description AWTScreenImageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends NativeType<T>>
ArrayImgAWTScreenImage<T,?>emptyScreenImage(T type, long[] dims)Get an appropriateAWTScreenImagegiven a type and the dimensionality of the incoming image.private static intnumElements(long[] dims)
-
-
-
Method Detail
-
emptyScreenImage
public static <T extends NativeType<T>> ArrayImgAWTScreenImage<T,?> emptyScreenImage(T type, long[] dims)
Get an appropriateAWTScreenImagegiven 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 emptyAWTScreenImagedims- dimensions of the resultingArrayImgAWTScreenImage- Returns:
- // HACK: raw-cast of container to ArrayImgAWTScreenImage needed for Sun Java 6 compiler
-
numElements
private static int numElements(long[] dims)
-
-