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 / GUI / January 2005

Tip: Looking for answers? Try searching our database.

Regarding BUfferedImage

Thread view: 
AJ - 08 Jan 2005 19:01 GMT
Hi

I have a small problem that i am unable to solve. I have quantized a
jpg image and reduced the number of colors. It is currently as a
BufferedImage object. Now i want to save this quantized image as a jpg
file. I am using ImageIO api available in java, and i am successful
with that. But when i decide to read this jpg file and compare it with
the quantized BufferedImage object, i am not able to retain the
original quantized rgb values. Does anyone have any suggestions how i
could retain the original values and also why the original values are
not being retained. I dont want to have the image in any other format
like gif or png. Is it possible to do this using jpg itself
Thanks

Ajay
Andrey Kuznetsov - 08 Jan 2005 19:58 GMT
> I have a small problem that i am unable to solve. I have quantized a
> jpg image and reduced the number of colors. It is currently as a
[quoted text clipped - 5 lines]
> could retain the original values and also why the original values are
> not being retained.

jpg is lossy format.

> I dont want to have the image in any other format
> like gif or png. Is it possible to do this using jpg itself

you should work direct in frequency domain.
Just now I extending my image reading library with this feature.
Come in one week to my homepage: http://reader.imagero.com

Regards

Signature

Andrey Kuznetsov
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



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.