How can i get alpha channel from bmp image?
hi folks
i want to display the transparensy image. so i need to reduce the 50% value in alpha channel. plz help me how can i get the alpha channel from the image. if u have any idea or sample code or any useful link help me. i am waiting for reply as soon as possible. :wave:
Thanks and regards
jay
Re: How can i get alpha channel from bmp image?
Take a look at ::AlphaBlend().
Cheers
Re: How can i get alpha channel from bmp image?
Do you mean you want to alphablend an image, or do you mean you want to display the alpha channel of an image as a black and white image?
Re: How can i get alpha channel from bmp image?
Quote:
Originally Posted by golanshahar
i want to display the alpha channel image in the document view architecture can u give the sample code for geting handle of HDC hdcDest, it will work only View OnDraw() not hte other function. can u give the example for that transoarency image.plz as soon as reply.
Re: How can i get alpha channel from bmp image?
Quote:
Originally Posted by TomWidmer
Do you mean you want to alphablend an image, or do you mean you want to display the alpha channel of an image as a black and white image?
hi i am guna. i want to display the 2 images with transparensy. i can see the bottom layer image trough top layer image.similar to transparent image. plz reply as soon as possible.
Re: How can i get alpha channel from bmp image?
Quote:
Originally Posted by Gunaamirthavelu
i want to display the alpha channel image in the document view architecture can u give the sample code for geting handle of HDC hdcDest, it will work only View OnDraw() not hte other function. can u give the example for that transoarency image.plz as soon as reply.
This thread might help you.
Cheers
Re: How can i get alpha channel from bmp image?
No. my requirement is similar to montage; overlap the image with trnaparent after that i can veiw the 3d image and drawing the circle and rectangle. using GDI+ is ok. but that code worked in OnDraw() function. i want seperate function for that. display the images in document view architecture this is
not the dialog based application
Thanks andRegards.