[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Image loading



Am Sam, 2003-04-26 um 19.51 schrieb Thomas Badran:
> Whats the easiest way to load an image (jpg) off disk and display, on
> say a JFrame or other swing component without using external libraries?

read:
http://java.sun.com/docs/books/tutorial/uiswing/painting/usingImages.html


> Also, can you get direct access to the pixel data (in RGB or YCrCb
> form)?

yes, using java.awt.image.BufferedImage gives you access on the
underlying data.

Roman




Reply to: