This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to manipulate an indexed BufferedImage?  RSS feed

 
Jesper Ottosson
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created this BufferedImage with the type TYPE_BYTE_INDEXED. Now I want to change the value of the pixels, one at a time, but the only method i can find is BufferedImage.setRGB(), and the docs for it says it looks up the closest index to the rgb.... and i don't want that, cause it's slow. What I want is a way to just set the byte value of one of the pixels. How?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!