[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: SWT and JAI?

Isn't it possible to grab the pixel contents (i.e. Raster) of the final JAI
image and feed it into an instance of org.eclipse.swt.graphics.ImageData
(with appropriately configured PaletteData)?

Then you can pass the ImageData object to an SWT Image and render it on a
GC.

/Ivan

P.S. Sorry if it doesn't make sense to you, I'm not very familiar with JAI.

"Roland" <Roland.Goecke@xxxxxxxxxxxxxxxxxx> wrote in message
news:bf111q$msb$1@xxxxxxxxxxxxxx
> Hi,
>
> I was wondering if there is a way to combine SWT objects with Sun's JAI
> stuff.
>
> I am working on a stand-alone, image analysis application and have thus
> far used SWT in the GUI. Ideally, I would like to show an image as part of
> the GUI. Sure, I can do that with SWT but I would really like to use the
> functionality provided by JAI, rather than rewriting that myself.
>
> Can I somehow "add" an ImageCanvas or something from JAI to an SWT.shell?
>
> I know there is an internal, experimental Swing_in_place code but since it
> is not officially supported, I would prefer not to use it.
>
> Would a workaround me to hold the data in JAI objects but pass them to
> SWT.Image objects which can then be displayed in an SWT.shell?
>
> Regards
> Roland
>