HBITMAP with alpha channel - what's wrong?
-
Hi everyone, I have a HBITMAP with alpha channel information. The alpha channel should already be premultiplied. Nevertheless, when using GDI's AlphaBlend(..) function, the bitmap seems to have "black borders", means the semi-transparent areas are simply black. Does this mean I am doing something wrong? Or is AlphaBlend that limited? I guess I should avoid legacy GDI AlphaBlend, maybe some has a clue what alternatives I'd have for a dialog based application? Is there something better in GDI+ for bitmaps with transparency? I am not really convinced to go for D2D for this bitmap only. ;-) Cheers, Don Rolando
-
Hi everyone, I have a HBITMAP with alpha channel information. The alpha channel should already be premultiplied. Nevertheless, when using GDI's AlphaBlend(..) function, the bitmap seems to have "black borders", means the semi-transparent areas are simply black. Does this mean I am doing something wrong? Or is AlphaBlend that limited? I guess I should avoid legacy GDI AlphaBlend, maybe some has a clue what alternatives I'd have for a dialog based application? Is there something better in GDI+ for bitmaps with transparency? I am not really convinced to go for D2D for this bitmap only. ;-) Cheers, Don Rolando