NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
David- "David V. Olivier" wrote: > > I see that the gif adapter facilitates conversion from a gif to a flat > field. What about the other direction? I saw on the mailing list that > someone was using Display.getImage() and then converting it from there. Is > this the most straightforward method? > > The desired image would contain just a 2d representation of the data > itself, no axis, units, or background. Any thoughts? You might also look at visad.util.DataUtility.extractImage which will create a java.awt.Image from a FlatField of type ((x, y) -> (r, g, b)). You could then put out to JPEG. That would give you just the data. Don ************************************************************* Don Murray UCAR Unidata Program dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000 (303) 497-8628 Boulder, CO 80307 http://www.unidata.ucar.edu/staff/donm *************************************************************
visad
archives: