This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

change bit-depth of image  RSS feed

Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to change image bit-depths(always to lower them) to as low as 2 bit,
but also 4, 8 and 12 bits. I think my computer wouldn't be able to handle a 16
bit image... Are there any ways to reduce the amount of data (like read in the
data as greyscale instead of buffering and then changing) being read in . I
guess I could tell it to read in only every fourth pixel or something.. I
Anyways, I need to know how to change the bit depths. I'm using java1.4 and
the latest JAI package, so all the ImageIO stuff for encoding and decoding.
BufferedImage's int values don't cut it(dont' go as far as 2 bit) and simply
thresholding the image doesn't either because my aim is to reduce the amount
of data being sent to the client and this would probably result in a high bit
image with 2 colors used
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!