The Artima Developer Community
Sponsored Link

Java Answers Forum
Converting BufferedImage bit-depth

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian Doidge

Posts: 1
Nickname: thoth
Registered: Jul, 2005

Converting BufferedImage bit-depth Posted: Jul 5, 2005 7:13 PM
Reply to this message Reply
Advertisement
Hi all,

I need to convert a 32-bit PNG (RGB) to an 8-bit (indexed) version, with as little loss in quality as possible, although some is inevitable and accecptable. I've been able to pull this off by using ColorConvertOp to create a compatible destination image with the appropriate (default) IndexedColorSpace and SampleModel and just painting to it, but the dithering on this was terrible.

What I need to do is create my own palette for the destination image, then create the image itself. In the first part I (think) I've been successful, but I'm getting lost in precisely how to create the destination image and get the right data into it.

Topic: OEM Software Previous Topic   Next Topic Topic: Chat program doubt

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use