DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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, 12:00 AM
  2. Access database with VB GUI
    By Emma in forum VB Classic
    Replies: 1
    Last Post: 06-30-2003, 07:47 AM
  3. Why integer and int32
    By Michael Culley in forum .NET
    Replies: 154
    Last Post: 05-10-2002, 12:06 PM
  4. SQL syntax error
    By Ted Young in forum Database
    Replies: 7
    Last Post: 08-07-2001, 03:53 PM
  5. Re: applet- help- the code
    By shafi in forum Java
    Replies: 1
    Last Post: 07-26-2001, 11:32 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links