[ImageJ-devel] Questions about imglib2

Johannes Schindelin Johannes.Schindelin at gmx.de
Thu Mar 15 08:10:00 CDT 2012


Hi all,

On Thu, 15 Mar 2012, Stephan Saalfeld wrote:

> > 1) How do I convert an net.imglib2.img.Img to a
> > java.awt.image.BufferedImage?
> 
> There is the interface ScreenImage which can return a BufferedImage
> 
> http://fiji.sc/cgi-bin/gitweb.cgi?p=imglib.git;a=blob;f=imglib2/core/src/main/java/net/imglib2/display/ScreenImage.java
> 
> implemented by ARGBScreenImage
> 
> http://fiji.sc/cgi-bin/gitweb.cgi?p=imglib.git;a=blob;f=imglib2/core/src/main/java/net/imglib2/display/ARGBScreenImage.java
> 
> and UnsignedByteScreenImage
> 
> http://fiji.sc/cgi-bin/gitweb.cgi?p=imglib.git;a=blob;f=imglib2/core/src/main/java/net/imglib2/display/UnsignedByteScreenImage.java

Note that we need to extract all code referencing AWT into a new component
and confine AWT's use to that component. So we might need to either move
ScreenImage out to, say, imglib2-awt or strip it from all mentions of
AWT's classes and interfaces.

Ciao,
Johannes



More information about the ImageJ-devel mailing list