What format are you saving it as? Note that the JPG image format is
lossy so the image written to disk might be different from the image you
handed to the writer (off by 1s would be common). PNG is a lossless
format so it will write out exactly the pixels you hand to it.
Also, what format is the incoming image? If it is TYPE_INT_RGB then you
don't need to worry about the alpha component as it has no alpha
channel. You only need to extract and return the alpha component if it
is a type that has alpha, like TYPE_INT_ARGB. If it is not one of those
2 types then you might need to do more work with the pixels, but I'm
guessing that it really is one of those 2 types if you are getting this
far...
...jim
[email protected] wrote:
Krill,
Thanks for the suggestion, I have tried this, and where as the pixels in the
image are showing as blue when I reload the image non of the pixels have their
blue component set at 255, I am manually setting
alpha = 255
red = 0
green = 0
blue = 255
however blue is being set to 254 alpha remains at 255 and red and green remain
at 0 So it is almost working. I shoule be able to set the blue to 255 shouldn't
I ??
Regards, Chris
[Message sent by forum member 'cocopopsicle' (cocopopsicle)]
http://forums.java.net/jive/thread.jspa?messageID=325862
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".