How To Change The Transparency Of Png Image

Hi All,

I want to change the transparency of the PNG image, for that I gone through the document which say that, after changing the tRNS chunk of the PNG datastream we can change the transparency of the PNG image.

But after changing the 4 bytes of the tRNS chunk I can't get the transparency.

So any body can me to solve this Problem or suggest any other method to change the transparency.

regards,
krmlkr