CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2005
    Location
    Chennai , India
    Posts
    1,375

    Thumbs up 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.

    Thanks and regards
    jay
    It takes seconds for rating…that actually compensates the minutes taken for giving answers
    The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
    Regards, Be generous->Rate people
    Jayender!!

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: How can i get alpha channel from bmp image?

    Take a look at ::AlphaBlend().

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  3. #3
    Join Date
    Apr 2006
    Location
    Nr Cambridge, UK
    Posts
    263

    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?

  4. #4
    Join Date
    Jun 2005
    Location
    Tirunelveli-Tamil Nadu-India
    Posts
    354

    Smile Re: How can i get alpha channel from bmp image?

    Quote Originally Posted by golanshahar
    Take a look at ::AlphaBlend().

    Cheers
    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.
    If I Helped You, "Rate This Post"

    Thanks
    Guna

  5. #5
    Join Date
    Jun 2005
    Location
    Tirunelveli-Tamil Nadu-India
    Posts
    354

    Smile 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.
    If I Helped You, "Rate This Post"

    Thanks
    Guna

  6. #6
    Join Date
    May 2005
    Posts
    4,954

    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
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  7. #7
    Join Date
    Jun 2005
    Location
    Tirunelveli-Tamil Nadu-India
    Posts
    354

    Thumbs up 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.
    If I Helped You, "Rate This Post"

    Thanks
    Guna

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured