i m making APP which do image proceesing using java SE.i want to check programeticly at run time that whether image is 8 bit or 16 bit? and then according that i do image processing on that.so, how can i check it in java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is post here that is trying to read a 8-bit and 24-bit bmp file.
http://www.javaworld.com/javaworld/javatips/jw-javatip43.html?page=2
Here it tries to get the number of bits like this:
Once you get this count you can validate this what type of image it is based on this bit count.