Hi, Dalibor
I gave you a test Applet code and a html code.
They are provided below:
------------------------------------------------------------------------
1)--ImgTest.java
import java.awt.*;
import java.applet.Applet;
import java.io.IOException;
public class ImgTest extends Applet {
Image duke;
public void init() {
duke = getImage(getDocumentBase(), "1_new.png");
// duke = getImage(getDocumentBase(), "main_01.png");
}
public void paint(Graphics g) {
g.drawImage(duke, 200,100,this);
}
}
2)--ImgTest.html
<HTML>
<HEAD><TITLE>Applet test</TITLE></HEAD>
<BODY>
<APPLET CODE="ImgTest.class" WIDTH=500 HEIGHT=500>
Can’t load the applet
</APPLET>
</BODY>
</HTML>
---------------------------------------------------------------------
Try it with appletviewer.
"appletviewer ImgTest.html"
Also, I attached two png files, one of which is '1_new.png' showing wrong colors (you
can confirm it if you look at it through other browsers), the other of which is
'main_01.png' generating a error that I told you.
Try one by one with the java applet.
Thanks. Have your day..
Joon
----- Original Message -----
From: "Dalibor Topic" <[EMAIL PROTECTED]>
To: "ÀÌÁØÇõ" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 13, 2002 11:02 PM
Subject: Re: [kaffe] broken PNG images on KAFFE 1.0.7?
> Hi Joon,
>
> --- ÀÌÁØÇõ <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I've installed Kaffe-1.0.7 and tried to display PNG
> > images through applet or browser running on Kaffe.
> > But, PNG images aren't displayed properly. Some of
> > PNG images were broken, and others shown with wrong
> > colors.
> >
>
> Thanks for the bug report.
>
> Could you come up with a small test case (ca. 10
> lines), i.e. a piece of code that loads the png image
> and crashes?
>
> > Other PNG images caused errors like this:
> > libpng error: Decompression error
> > kaffe-bin: exception.c:386: dispatchException:
> > Assertion `!intsDisabled()' failed.
>
> your PNG library seems to have problems decoding the
> images. It might be a bug in the PNG images, or the
> PNG library you are using, or even in kaffe ;). If you
> could come up with a small test case, it could be
> possible to figure it out.
>
> best regards,
>
> dalibor topic
>
>
> __________________________________________________
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
>
> _______________________________________________
> kaffe mailing list
> [EMAIL PROTECTED]
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>
<<attachment: 1_new.png>>
<<attachment: main_01.png>>
