Class AWTScreenImageUtil


  • public class AWTScreenImageUtil
    extends java.lang.Object
    Utility class to create AWTScreenImages. TODO: Add convenience methods to render RandomAccessibleIntervals.
    Author:
    Christian Dietz
    • Constructor Detail

      • AWTScreenImageUtil

        public AWTScreenImageUtil()
    • Method Detail

      • emptyScreenImage

        public static <T extends NativeType<T>> ArrayImgAWTScreenImage<T,​?> emptyScreenImage​(T type,
                                                                                                   long[] dims)
        Get an appropriate AWTScreenImage 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 empty AWTScreenImage
        dims - dimensions of the resulting ArrayImgAWTScreenImage
        Returns:
        // HACK: raw-cast of container to ArrayImgAWTScreenImage needed for Sun Java 6 compiler