Re: ByteArraySeekableStream ignores offset

From: Marco Schmidt (marcoschmidt_at_geocities.com)
Date: 02/07/04


Date: Sat, 07 Feb 2004 01:43:16 +0100

Alexandr Molochnikov:

>I have to use JAI to support the widest possible range of image formats. The
>approach you suggest does not work with formats other tha GIF, JPEG and
>PNG. E.g. for BMP images the BufferedImage returned from ImageIO is null.

You can download plugins for ImageIO from
<http://java.sun.com/products/java-media/jai/downloads/download-iio.html>.
Quote:

JAI Image I/O Tools provides reader, writer, and stream plug-ins for
the Java Image I/O Framework and Image I/O-based read and write
operations for Java Advanced Imaging. Reader-writer plug-ins are
supplied for the BMP, JPEG, JPEG 2000, PNG, PNM, Raw, TIFF, and WBMP
image formats. The supplied streams and associated service providers
use the New I/O APIs.

Java 1.5 (now available as a beta version) comes with built-in BMP
support:
<http://java.sun.com/j2se/1.5.0/docs/api/javax/imageio/package-summary.html#package_description>.

Regards,
Marco

-- 
Please reply in the newsgroup, not by email!
Java programming tips: http://jiu.sourceforge.net/javatips.html
Other Java pages: http://www.geocities.com/marcoschmidt.geo/java.html


Relevant Pages

  • Re: jpg Bilder schnell als perview runterskalieren
    ... Photoshop schreibt meistens mit thumbnail. ... Du kannst auch erst mal mit ImageIO vorschau als jpeg speichern und dann mit ... Oder du kannst auch tiff benutzen (auch mit JPEG comprimierung). ... http://uio.imagero.com Unified I/O for Java ...
    (de.comp.lang.java)
  • Re: How do I get Access to recognize a bmp created in Photoshop?
    ... If you use a Bound OLE Frame you can use JPEG or bmp format, ... involves storing uncompressed images in the database (Photo Editor stores them uncompressed, ... Consequently the database swells rapidly towards the maximum Access file size. ...
    (microsoft.public.access.forms)
  • Re: How do I get Access to recognize a bmp created in Photoshop?
    ... If you use a Bound OLE Frame you can use JPEG (with Photo Editor) or bmp format, ... Consequently the database swells rapidly towards the maximum Access file size. ...
    (microsoft.public.access.forms)
  • [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: C# Image
    ... The JPEG file size was only about 1.5MB. ... to the expected but the BMP is almost double. ... Having to use this method has its drawback - more memory is used while both ... The Mem Usage is noted before and after ...
    (microsoft.public.dotnet.general)