jQuery in Action, 2nd edition*
The moose likes Other JSE/JEE APIs and the fly likes change bit-depth of image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "change bit-depth of image" Watch "change bit-depth of image" New topic
Author

change bit-depth of image

Brendan Kennedy
Ranch Hand

Joined: May 02, 2001
Posts: 65
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change bit-depth of image
 
Similar Threads
How to Invalidate Session
File upload/download using UDP
ImageTypeSpecifier for 12 bit grayscale image
how the technique writer write the books?
Simple Question