Re: drawImage returns false for Microsoft Java
- From: "Thomas Fritsch" <i.dont.like.spam@xxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 02:31:45 +0200
<igorkhalatian@xxxxxxxxxxx> wrote:
> barray - contains byte[] array of the PNG image
>
> image = Toolkit.getDefaultToolkit().createImage(barray);
>
> MediaTracker t = new MediaTracker(this);
> t.addImage(image, 0);
> try {
> t.waitForAll();
> }
> catch (InterruptedException e) {
> Thread.currentThread().interrupt();
> }
> ...
> ret = g.drawImage(image, x,y, this);
>
> THIS WORKS FINE IN JUN JAVA but in Microsoft JVM drawImage always
> returns false.
> Any help is greatly appreciated.
>
It is probably because Microsoft's JVM doesn't support PNG images.
If I remember it correctly, the MS-JVM is java-version 1.1. And back in
those days Java (both Sun and MS) only supported JPEG and GIF images.
--
"TFritsch$t-online:de".replace(':','.').replace('$','@')
.
- Follow-Ups:
- Re: drawImage returns false for Microsoft Java
- From: igorkhalatian
- Re: drawImage returns false for Microsoft Java
- References:
- drawImage returns false for Microsoft Java
- From: igorkhalatian
- drawImage returns false for Microsoft Java
- Prev by Date: drawImage returns false for Microsoft Java
- Next by Date: Re: JList gets moved around in layout after data is added to it--fixed
- Previous by thread: drawImage returns false for Microsoft Java
- Next by thread: Re: drawImage returns false for Microsoft Java
- Index(es):
Relevant Pages
|