http://www.perlmonks.org?node_id=214503


in reply to Convert RGB to an actual color

Sorry for not being clear in my problem statement. I am running *in2k and perl 5.05. I want to read in all of the pixels from a particular white/gray image and then determine how opaque the image is from pure white. I don’t know if this is even possible with perl, but perl is the only lang. that I like to use. I have the reading of the image part working, (though I must have something wrong with my hex conversion) I just need a little help figuring out how to get the average color and then determining opacity from that. Thanks for all of your help already!