Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

JPEG image quality loss when rendering in Swing Components

Thread view: 
Biswa Prakash - 17 Oct 2006 14:53 GMT
Will there be loss of quality(resolution / sharpness etc) of any jpeg
image when I am rendering the image in JLabel and displaying it over a
JPanel ?
Is there be any difference in quality when the image is rendered in a
web browser (like Internet Explorer or Firefox) compared to rendering
the image in Java Swing Components ?
If there is a difference in image quality, how can I measure it, are
there any tools or should I write a routine?
Andrew Thompson - 17 Oct 2006 15:25 GMT
> Will there be loss of quality(resolution / sharpness etc) of any jpeg
> image when I am rendering the image in JLabel and displaying it over a
> JPanel ?

What did your (visual) tests indicate?
Does any one look better than any of the others?

> Is there be any difference in quality when the image is rendered in a
> web browser (like Internet Explorer or Firefox) compared to rendering
> the image in Java Swing Components ?

Probably not, given IE will offer to 'resize' any image
it loads directly, and what resizing algorithm it uses
is anybody's guess.

But we come back to.  What did *your* tests show?

> If there is a difference in image quality, how can I measure it,

Possibly subracting ione image from the other might
highlight differences.  Get a Robot to get a screengrab
of the image(s) in the various UI's of interest.  Line up
the relevant parts of the image and do a... (what is it)
AlphaComposite filter that is (gets very vague)..right
for subtracting one image from another.

>...are there any tools or should I write a routine?

Probably 'b' write a routine - I doubt you'll find any tools.

Andrew T.
Biswa Prakash - 17 Oct 2006 19:18 GMT
Thanks for the response. As far as visual test is concerned, I didn't
see any difference. I agree IE resizes the images, but my application
will not resize images, so this scenario is out of question.

> > Will there be loss of quality(resolution / sharpness etc) of any jpeg
> > image when I am rendering the image in JLabel and displaying it over a
[quoted text clipped - 27 lines]
>
> Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.