Tic, thank you incredibly for the reference to this post.
Please see what I have here and hopefully you can guide me further:
Below is basically what I am using, which works, to generate a image file from a PSTREAM
Code:
; GENERATE GDI+ BITMAP FROM A PSTREAM
DllCall( "LoadLibrary", Str,"gdiplus" )
VarSetCapacity(si, 16, 0), si := Chr(1)
DllCall( "gdiplus\GdiplusStartup", UIntP,pToken, UInt,&si, UInt,0 )
DllCall( "gdiplus\GdipCreateBitmapFromStream", UInt,pStream, UIntP,bitmap )
; SAVE THIS BITMAP TO A FILE
GDIplus_GetEncoderCLSID(pngEncoder, "image/png")
GDIplus_SaveImage(bitmap, "C:\image.png", pngEncoder, encoderParams)
... but what I really want to do, is load up more than one pStream into the Bitmap before it is saved. Where I am slightly confused is this
Code:
Gdip_DrawImage(G, pBitmap, dx, dy, dw, dh, sx, sy, sw, sh, 0.5)
I don't really understand how this line works... but where I am very confused is the transparency part. I really don't want one image less 'transparent' than the other... They are both assumed to be semi-transparent PNG's, and I want to Composite them over each other.
Basically, what would be so awesome is if I can see a working model, where a 500x500 flat red or green background is generated,.... and 2 images of 100x100 are placed over this background. The images should be semi-transparent (i.e. some PNG image that would have transparent parts blended over this color backdrop ---)
I hope this makes sense. I am really greatful for your assistance.
