pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Loading Image by byte[]
Date Wed, 26 Jan 2011 13:08:28 GMT
See the org.apache.pivot.wtk.media.Picture class. It is a concrete subclass of Image that wraps
an instance of java.awt.image.BufferedImage. You can create/populate the BufferedImage however
you like. Then wrap it in a Picture and call ImageView#setImage().
G

On Jan 26, 2011, at 6:46 AM, Jérôme Serré wrote:

> Hello,
> 
> To display an image in ImageView I use this method :
> iv.setImage(Image.load(
> <http://download.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=
> true> URL location));
> Is it possible to fill ImageView with an array of bytes or another object
> that contain image ?
> 
> Thank you.
> 
> Jérôme
> 
> ____________________________
> La gestion de votre cave
> <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
> 
> 


Mime
View raw message