ListGetPreviewBitmap

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Dec
Member
Member
Posts: 115
Joined: 2006-11-23, 12:48 UTC

ListGetPreviewBitmap

Post by *Dec »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
Post Reply