Bonjour, :D
J'essaie d'apprendre à utilser correctement CxImage.
Voici un petit bout de code, très simple, qui ( dès le début ! :aie: ) me pose problème.
Voila, ça fonctionne, l'image s'affiche, mais ... en Bmp, et donc perd sa transparence :( ??Code:
1
2
3
4
5
6
7
8
9
10
11 HDC hDC; PAINTSTRUCT ps; long x, y, cx, cy; CxImage Image Png; imagePng.Load (filename, CXIMAGE_FORMAT_PNG); hDC = BeginPaint(hWnd, &ps); imagePng.Draw2(hDC, x=0, y=0, cx=-1, cy=-1); EndPaint(hWnd, &ps);
Quelqu'un peut-il m'expliquer pourquoi ? :D
Et me dire ou j'ai fauté...:oops:
Merci
Claude