• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

change bit-depth of image

 
Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey
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
dunno.
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
Thanks,
Brendan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic