Jump to content

keeping the alpha channel after BitmapCreateFromHBITMAP


Recommended Posts

Hi @Aaron3569.

In the docs for _GDIPlus_BitmapCreateHBITMAPFromBitmap the second argument is the background color that should support the alpha channel.

So try this:

_GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap , 0x00000000)

You did not provide example code for me to try the solution with, and I'm not feeling like making code to test this solution with currently, but it SHOULD work :)

Hope it helps!

 

Edit:

I just realized you wanted to use _GDIPlus_BitmapCreateFromHBITMAP instead, my bad :sweating:. I have some code that does this, so if you provide some example code to demonstrate the issue, I'll take the time to dig through my archive of files ;)

If not, there are solutions if you search enough within this forum 😅.

Edited by genius257
Me being an idiot and not initially reading the question right
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...