Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ImageTypeSpecifier for 12 bit grayscale image

Chris Jebaraj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All!

I am using ImageTypeSpecifier to create grayscale instance for 8, 16-bit images. But when i try to create for 12 bit grayscale image, i am getting the following exception,

It looks like ImageTypeSpecifier's createGrayScaleInstance method supports only 1, 2, 4, 8 and 16.

This is how i am trying to generate my buffered image,

Would any please tell me what i am doing is correct. I should generate buffered image for bit depths 8, 10, 12 and 16.

Thanks in Advance. This is very urgent one please!!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic