Re: drawImage returns false for Microsoft Java
- From: igorkhalatian@xxxxxxxxxxx
- Date: 25 Jul 2005 19:28:24 -0700
Thank you for replying.
You are correct. It is JAVA 1.1 but documentation is very vague on this
one something like "supported format such as GIF or JPEG" so I was
wondering if PNG was there. Do you actually know if there is a list of
supported formats for 1.1 to put this issue to rest?
And more importantly if I have bytes containing PNG image and a have to
get them displayed under java 1.1 what are my options?
Thomas Fritsch wrote:
> <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: Andrey Kuznetsov
- Re: drawImage returns false for Microsoft Java
- From: Thomas Fritsch
- Re: drawImage returns false for Microsoft Java
- From: Andrew Thompson
- Re: drawImage returns false for Microsoft Java
- References:
- drawImage returns false for Microsoft Java
- From: igorkhalatian
- Re: drawImage returns false for Microsoft Java
- From: Thomas Fritsch
- drawImage returns false for Microsoft Java
- Prev by Date: Re: JList gets moved around in layout after data is added to it--fixed
- Next by Date: How to get Memory Status?
- Previous by thread: Re: drawImage returns false for Microsoft Java
- Next by thread: Re: drawImage returns false for Microsoft Java
- Index(es):
Relevant Pages
|