ListGetPreviewBitmap
Moderators: white, Hacker, petermad, Stefan2
ListGetPreviewBitmap
Is there any way to return 32-bit bitmap with alpha? When I do it I see only the black image instead of the image which I return.
- ghisler(Author)
- Site Admin
- Posts: 48021
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That should definitely work, if the image is created correctly (e.g. via CreateDIBSection). bmplanes*bmpobj.bmbitspixel must be 32, and at least one pixel must have a non-zero alpha channel. Also the function "AlphaBlend" must be present in the dll "Msimg32", otherwise TC will treat it as a 32-bit RGB image.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com