when I save the bitmap it's now 2.47MB.
I just put a Return pBitmap before the function disposing it.
Code: Select all
pBitmap := Imagen("C:\picture.png", "?Normal:" 155 " BackGroundTrans")
Gdip_SaveBitmapToFile(pBitmap, "file.png", 100)
Return
I'm keeping some hbitmaps in memory to speed up and reduce CPU use, but it's using like 400MB of RAM.
I tried to resize the bitmap after setting transparency with Imagen with a different pixel format, but it lost the transparency;
What do you recommend to reduce the size of the hbitmaps stored in memory?