Quote:
Originally Posted by rocotilos
Hello rahul, the codes all assumes the image has ARGB format.
ie
index = alpha channel
index+1 = red channel
index+2 = green channel
index+3 = blue channel.
this normally is true for PNG images. But, in case of other formats, you need to cater for it.
my advise is pre-process your loaded images into png first (and scale it down a bit).
HTH.
|
Thanks a lot Rocotilos, Image that i was using is in BGR format. so i changed code accordingly. Now when i tried to use another image(i.e. bmp file), code doesn't work properly.
Can you tell me how to convert any image of any format to Png(ARGB) format?
Thanks in advance