Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Graphics APIs > errors in creat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 59 of 99
Post > Topic >>

errors in creating BufferedImage

by "rajesh.rapaka" <rajesh.rapaka@[EMAIL PROTECTED] > Mar 22, 2005 at 02:23 AM

Hi all,

I am working on 16 - bit images and i am trying to develop a
BufferedImage from the pixels.

i am using
     bufImage = new BufferedImage(ComponentColorModel,WritableRaster,
Boolean, HashTable);

But I find the 16 - bit images darker than normal. 8 - bit images made
in this way are fine.

So I scaled my pixels from 16 - bit to 8 - bit. and am continuing the
process. when i am painting the bufferedImage I get and
"ArrayIndexOutofBounds exception".

I dont think there is a problem in the scaling process cause I am also
making and image using MemoryImageSource with the same scaled pixels
and i am getting the image quite well.

What could've been the problem.
Why am i getting the exception??
is there any other way i can show the 16 - bit images brighter.
help !!

regards
Rajesh rapaka.
 




 1 Posts in Topic:
errors in creating BufferedImage
"rajesh.rapaka"  2005-03-22 02:23:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 27 17:23:38 CDT 2008.