Skip to main content

[JAVA2D] Image I/O library

3 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Andrei Kouznetsov

On Tue, 7 Dec 2004 08:03:14 +0100, =?ISO-8859-1?Q?Claude_St=E9phan?=
wrote:

>Untill to day, I load an Image through getImage method and Toolkit.
>To be certain that the picture has been well loaded, I use
>java.awt.MediaTracker

the simplest way is to create ImageIcon instead of using MediaTracker

>
>Is the Image I/O librairy get the picture completly loaded or do I have
>to still work with Mediatracker?

no you don't need MediaTracker.

Regards

--
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

kirill grouchnikov

One advantage of using MediaTracker is when you load
multiple images over the Web. You then may show a
progress bar that indicates how many images have been
completely downloaded. This gives a nice illusion of
the progress instead of a synchronous wait. You can
write a simple ImageRetrieverThread that will start
the download. It then may notify the UI about the
progress and the end of the download.

--- Andrei Kouznetsov wrote:

> On Tue, 7 Dec 2004 08:03:14 +0100,
> =?ISO-8859-1?Q?Claude_St=E9phan?=
> wrote:
>
> >Untill to day, I load an Image through getImage
> method and Toolkit.
> >To be certain that the picture has been well
> loaded, I use
> >java.awt.MediaTracker
>
> the simplest way is to create ImageIcon instead of
> using MediaTracker
>
> >
> >Is the Image I/O librairy get the picture completly
> loaded or do I have
> >to still work with Mediatracker?
>
> no you don't need MediaTracker.
>
> Regards
>
> --
> Andrei Kouznetsov
> http://uio.dev.java.net Unified I/O for Java
> http://reader.imagero.com Java image reader
> http://jgui.imagero.com Java GUI components and
> utilities
>
>
===========================================================================
> To unsubscribe, send email to listserv@java.sun.com
> and include in the body
> of the message "signoff JAVA2D-INTEREST". For
> general help, send email to
> listserv@java.sun.com and include in the body of the
> message "help".
>

__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Dmitri Trembovetski

On Tue, Dec 07, 2004 at 02:29:09AM -0800, kirill grouchnikov wrote:
> One advantage of using MediaTracker is when you load
> multiple images over the Web. You then may show a
> progress bar that indicates how many images have been
> completely downloaded. This gives a nice illusion of
> the progress instead of a synchronous wait. You can
> write a simple ImageRetrieverThread that will start
> the download. It then may notify the UI about the
> progress and the end of the download.

ImageIO has exactly this facility. Check out
javax.imageio.ImageReader.addIIOReadProgressListener() method and
javax.imageio.event.IIOReadProgressListener interface.

Thank you,
Dmitri

>
>
> > On Tue, 7 Dec 2004 08:03:14 +0100,
> > =?ISO-8859-1?Q?Claude_St=E9phan?=
> > wrote:
> >
> > >Untill to day, I load an Image through getImage
> > method and Toolkit.
> > >To be certain that the picture has been well
> > loaded, I use
> > >java.awt.MediaTracker
> >
> > the simplest way is to create ImageIcon instead of
> > using MediaTracker
> >
> > >
> > >Is the Image I/O librairy get the picture completly
> > loaded or do I have
> > >to still work with Mediatracker?
> >
> > no you don't need MediaTracker.
> >
> > Regards
> >
> >
> >
> ===========================================================================
> > To unsubscribe, send email to listserv@java.sun.com
> > and include in the body
> > of the message "signoff JAVA2D-INTEREST". For
> > general help, send email to
> > listserv@java.sun.com and include in the body of the
> > message "help".
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".