does anyone know how to convert a true color bufferedImage to a 256 bufferedImage?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: does anyone know how to convert a true color bufferedImage to a 256 bufferedImage?

  1. #1
    Join Date
    May 2006
    Posts
    1

    does anyone know how to convert a true color bufferedImage to a 256 bufferedImage?

    Hi guys,
    I was wondering if anyone could help me.
    I am trying to convert a bufferedImage from true color to 256. I managed to do this by using the graphic class but the problem with doing that is that the graphic class is a higher level java class so its really slow and speed is everything for the purpose of my program. Hence, does anyone know of another lower level method that could get the job done? Or, does anyone know how to mathematically round off the true color pixel to a 8-bit pixel?
    my ultimate goal is to create a 256 png but there is no way to do that with the standard java library (as of my knowledge. ) so I opted to take the bufferedimage route.

    Any suggestions or help would be greatly appreciated.

    Thank you in advance,

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    perhaps having a look at the advanced imaging api of java can help:
    http://java.sun.com/products/java-me...faq.html#10to8

Similar Threads

  1. Rumors for beta 2
    By Patrick Troughton in forum .NET
    Replies: 361
    Last Post: 10-01-2003, 01:00 AM
  2. Access database with VB GUI
    By Emma in forum VB Classic
    Replies: 1
    Last Post: 06-30-2003, 08:47 AM
  3. Why integer and int32
    By Michael Culley in forum .NET
    Replies: 154
    Last Post: 05-10-2002, 01:06 PM
  4. SQL syntax error
    By Ted Young in forum Database
    Replies: 7
    Last Post: 08-07-2001, 04:53 PM
  5. Re: applet- help- the code
    By shafi in forum Java
    Replies: 1
    Last Post: 07-26-2001, 12:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center