<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2726.2500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Hi</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=¹ÙÅÁ>I
am developing kaffe-1.0.7<SPAN style="mso-spacerun: yes"> </SPAN>(Qt-based
AWT )on mips-embedded.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=¹ÙÅÁ>I
already installed qt(support jpeg,gif,png image) and built a kaffe
(awt-qt-based) successfully.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ> <?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Ultimately, I want to give a transparency to image (png or jpeg) and
display it on screen. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=¹ÙÅÁ>At
First, I need to understand the flow of image-loading mechanism in Qt-based
AWT.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>For example, I made a Image_out.java that display </FONT></SPAN><SPAN
lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡®</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ>jpeg</FONT></SPAN><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡¯</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ> image.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=¹ÙÅÁ>In
Image_out.java, there are some java class and methods like the
following</FONT></SPAN><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡¦</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ>.. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ> ---------------------------------<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Import java.awt.*;</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Import java.awt.image.*;</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Private Image image;</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Public void paint(Graphics g) { </FONT></SPAN><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡¦</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ>..}</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Image=toolkit.getDefaultTookiot().getImage(</FONT></SPAN><SPAN
lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡°</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ>test.jpg</FONT></SPAN><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡±</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ>);</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Image.getWidth()<SPAN style="mso-spacerun: yes">
</SPAN></FONT></SPAN><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡¦</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ>.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-FAMILY: 'Times New Roman'; mso-ascii-font-family: ¹ÙÅÁ">¡¦</SPAN><SPAN
lang=EN-US><FONT face=¹ÙÅÁ>.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>-------------------------------------</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-US></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Now, I know that kaffe use awt of Qt. Is it right? </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=¹ÙÅÁ>If
so, Are all awt.*(classes and methods) in kaffe-tree derivated from
Qt ?</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>And Can I see all awt.*(classes and methods) in Qt-install tree
?</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ> <o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=¹ÙÅÁ>At
Second, how can display translucent image(png or jpeg)?</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face=¹ÙÅÁ>I
will welcome that any clue about displaying translucent image.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ>Thanks</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face=¹ÙÅÁ> <o:p></o:p></FONT></SPAN></P></FONT></DIV></BODY></HTML>