Package ucar.nc2.dt.image
Class ImageArrayAdapter
- java.lang.Object
-
- ucar.nc2.dt.image.ImageArrayAdapter
-
public class ImageArrayAdapter extends Object
Makes a 2D Array into a java.awt.image.BufferedImage
-
-
Constructor Summary
Constructors Constructor Description ImageArrayAdapter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedImage
makeGrayscaleImage(Array ma, IsMissingEvaluator missEval)
Adapt a rank 2 array into a java.awt.image.BufferedImage.
-
-
-
Method Detail
-
makeGrayscaleImage
public static BufferedImage makeGrayscaleImage(Array ma, IsMissingEvaluator missEval)
Adapt a rank 2 array into a java.awt.image.BufferedImage. If passed a rank 3 array, take first 2D slice.- Parameters:
ma
- rank 2 or 3 array.- Returns:
- BufferedImage
-
-