Bonjour,
J'essaie d'apprendre à utilser correctement CxImage.
Voici un petit bout de code, très simple, qui ( dès le début !) me pose problème.
Voila, ça fonctionne, l'image s'affiche, mais ... en Bmp, et donc perd sa transparence
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 ?
Et me dire ou j'ai fauté...
Merci
Claude
Partager