Re: drawImage returns false for Microsoft Java



igorkhalatian@xxxxxxxxxxx write:

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?

Read the javadoc of class java.net.ContentHandler, how you can extend the set of supported image formats. It involves developing a ContentHandler for the MIME-type "image/png".
To get the built-in set of supported image formats, look into the main zip/jar file(s) of your Java runtime and see what class files are in package "sun.net.www.content.image". In Java 1.4 I find:
gif, jpeg, png, x_bitmap, x_pixmap.
In Java 1.1 there are probably less than those.


--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')

.



Relevant Pages

  • Re: drawImage returns false for Microsoft Java
    ... 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 ... And more importantly if I have bytes containing PNG image and a have to ... > those days Java only supported JPEG and GIF images. ...
    (comp.lang.java.gui)
  • [ANN] Imagero Reader 1.79_96 released
    ... Imagero Reader is Java library for reading image files and reading/writing ... - JPEG inclusive CMYC and 12-bit grey ... metadata can be read. ... Imagero Reader works with java1.1 and later. ...
    (comp.lang.java.announce)
  • Re: ByteArraySeekableStream ignores offset
    ... E.g. for BMP images the BufferedImage returned from ImageIO is null. ... operations for Java Advanced Imaging. ... supplied for the BMP, JPEG, JPEG 2000, PNG, PNM, Raw, TIFF, and WBMP ...
    (comp.lang.java.gui)
  • Re: help with image display gui
    ... them as jpeg can someone help me in understanding how to inport them ... I wouldn't repost the same request like this, you posted an identical request just before the weekend. ... Personally I don't see what doing this in Java buys you, If you really want to draw a GUI using JPEGs you might as well mock up the whole thing in photoshop. ... You can "skin" components with images but I've never tried that. ...
    (comp.lang.java.gui)
  • Giving an application a window icon in a sensible way
    ... rather than as a standalone executable JAR. ... packaging it as a class -- an Image subclass, ... tool for turning a jpeg, gif, or png into Java source code for an Image ...
    (comp.lang.java.programmer)