Re: drawImage returns false for Microsoft Java



<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('$','@')


.



Relevant Pages

  • Re: Browser shows a red cross in a small box in top L/H corner?
    ... Red X Instead of Images - Can't see or save Images/Pictures ... ActiveX problems in IE ... Things like Sun Java Runtimes and Macromedia stuff like Shockwave or Apple ... Sun also offers an automatic download and install of the 1.4 Java plug-in ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: image gallery
    ... let's say one of your images says "Contact us", ... the script where the links are - Actually i am just plain confused - do ... pictures like the FP Banner web component but will be visible to ... Being in Java doesn't usually / neccessarily mean insecure. ...
    (microsoft.public.frontpage.addins)
  • Re: Red Crosses?? HELP! ;O)
    ... I am also having this problem with red x's in place of images. ... java tests are good and still no luck. ... > unchecked to display pictures all the time. ... > Download the Microsoft Java VM for Windows XP here ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: image gallery
    ... Microsoft MVP - FrontPage ... If your pictures are stored in your images folder, ... pictures like the FP Banner web component but will be visible to ... Being in Java doesn't usually / neccessarily mean insecure. ...
    (microsoft.public.frontpage.addins)
  • Re: image gallery
    ... Does this mean i dont have to modify the second part of the script - telling ... If your pictures are stored in your images folder, ... pictures like the FP Banner web component but will be visible to users ... Being in Java doesn't usually / neccessarily mean insecure. ...
    (microsoft.public.frontpage.addins)