org.das2.util.ImageUtil

Utilities for image files and images.


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.

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 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 source