J'ai cherché la vclskin mais elle sert uniquement a appliquer des skins prédéfinies a une app et ce que j'essaie de trouver c'est comment définir la transparence d'une fenêtre en fonction du canal alpha d'un png.
J'ai vu qu'il existait une API de Windows pour l'alphablending :
BOOL AlphaBlend( HDC hdcDest, // handle to destination DC int nXOriginDest, // x-coord of upper-left corner int nYOriginDest, // y-coord of upper-left corner int nWidthDest, // destination width int nHeightDest, // destination height HDC hdcSrc, // handle to source DC int nXOriginSrc, // x-coord of upper-left corner int nYOriginSrc, // y-coord of upper-left corner int nWidthSrc, // source width int nHeightSrc, // source height BLENDFUNCTION blendFunction // alpha-blending function );
Je voudrais savoir si on peut affecter une valeur alpha à un pixel du canvas de la form en correspondance avec celle du pixel d'une image png.
Si kelkun a une idée sur comment utiliser cette api, je lui en serai tres reconnaissant...
|