org.das2.util.ImageUtil
Utilities for image files and images.
ImageUtil( )
getJSONMetadata
getJSONMetadata( java.io.File file ) → String
return the node containing JSON metadata showing where the plots are in images
produced by the Autoplot Das2 library, or null.
Parameters
file - the png file.
Returns:
null or the JSON describing the image. See http://autoplot.org/developer.richPng
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getScaledInstance
getScaledInstance( java.awt.image.BufferedImage img, int thumbSize ) → BufferedImage
convenient typical use.
Parameters
img - image to resize.
thumbSize - corner-to-corner size, preserving aspect ratio.
Returns:
buffered image that is thumbSize across.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getScaledInstance( java.awt.image.BufferedImage img, int width, int height, boolean pad ) → BufferedImage
getScaledInstance( java.awt.image.BufferedImage img, int targetWidth, int targetHeight, Object hint, boolean higherQuality ) → BufferedImage
getScriptURI
getScriptURI( java.io.File file ) → String
return the value of the text node apscript, if it is found, so the image
could be recreated.
Parameters
file - png file, produced by Autoplot using the Run Batch Tool.
Returns:
null or the script.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]