Page 1 sur 1

hBitmap -> GdkPixmap

Publié : mer. 18/juil./2007 11:14
par Progi1984
Voilà, je travaille actuellement sur GTK+ Windows...

Donc je cherche mon image avec LoadImage qui me retourne un pointeur vers un hBITMAP.

Mais avec GTK+, les pointeurs d'image sont structurés avec GdkPixmap...

Comment pourrais transformé ce hBitmap en GdkPixmap ?

Publié : dim. 22/juil./2007 19:54
par KarLKoX
Une idée comme ça :

- création de la structure GdkGCWin32 en PureBasic (si ce n'est déjà fait dans les résidents),
- récupération du contexte graphique : gdk_gc_new(gdk_drawable)
- accès au membre hdc de GdkGCWin32,
- utilisation de CreateCompatibleBitmap().

A voir.

Publié : mar. 24/juil./2007 16:21
par Progi1984
Je teste dès que possible !