Class NativeImgFactory<T extends NativeType<T>>

    • Constructor Detail

      • NativeImgFactory

        public NativeImgFactory​(T type)
      • NativeImgFactory

        @Deprecated
        public NativeImgFactory()
        Deprecated.
    • Method Detail

      • create

        public abstract NativeImg<T,​?> create​(long... dimensions)
        Create a NativeImg with the specified dimensions.
        Specified by:
        create in class ImgFactory<T extends NativeType<T>>
        Parameters:
        dimensions - the dimensions of the image.
        Returns:
        new NativeImg with the specified dimensions.
      • create

        public NativeImg<T,​?> create​(int[] dimensions)
        Create an Img<T> with the specified dimensions.

        Note: This is not a vararg function because the underlying int[] based methods already copies the int[] dimensions into a disposable long[] anyways. This would be an unnecessary copy for int... varargs.

        Overrides:
        create in class ImgFactory<T extends NativeType<T>>
        Returns:
        new image with the specified dimensions.