I have a function for blending pixels but the alpha value for the new pixel is wrong. Iv tried a few different approaches too fixing this in the past but could never figure out the correct algorithm for generating the correct alpha value. An example of what I’m attempting to do. Draw testImage2 over testImage1. ..
I have a pdf file(Transparent_Text.JPG) with the main context "mark" without any transparency, the watermark text "WA" is made transparent with the opacity of 50% and placed on top of the page.The watermark text "WA" and the main content "mark" is rendered using the GDI StretchDIBits API. Since this API doesn’t have the capability to ..