Je viens de commencer à utiliser Gtk # aujourd'hui, et je suis étonné du peu de documentation et de projets d'exemples disponibles. Quoi qu'il en soit, je voulais savoir si quelqu'un sait comment ajouter une image de fond à une fenêtre ou un widget? Ou je ne sais pas s'il est possible d'empiler plusieurs widgets les uns par rapport aux autres parce que cela serait très facile.Gtk # background image
0
A
Répondre
0
Gtk.Window est pour l'interface graphique, pour les images d'arrière-plan, vous devez utiliser Graphics i.e vous devez accéder à la GdkWindow sous-jacente. Dans Gtk #, utilisez simplement
Gtk.Window mwin = new Gtk.Window();
Gdk.Window gwin = mwin.GdkWindow;
puis d'utiliser Gdk.Pixbuf pour définir l'image d'arrière-plan. Voici un lien qui peut être utile, il est en PHP-GTK, mais il ne devrait pas être trop difficile à convertir en C#.
http://www.kksou.com/php-gtk2/articles/place-a-background-image-in-GtkWindow.php
Questions connexes
- 1. GTK + widget de background image alignement
- 2. Ensemble de dessins gtk background image
- 3. Float background-image verticale sous un autre background-image
- 4. bootstrap div background-image
- 5. background image in layoutunit
- 6. Slideshow background image
- 7. wxPython Button Background Image
- 8. Coloriser Background-Image
- 9. Background-Image fondu jquery
- 10. étendre background image hauteur
- 11. DirectX background image
- 12. Redimensionner div background image
- 13. Jquery - background-image click
- 14. Slideshow background image
- 15. iOS 6 background image
- 16. background image html
- 17. Flashy background image
- 18. CSS moving background image
- 19. CSS problème background-image
- 20. Dépannage CSS background-image
- 21. createElement background image
- 22. CSS background-image
- 23. background image css
- 24. iOS5 Toolbar background image
- 25. Footer background image css
- 26. silverlight grid background image
- 27. AQGridView background image
- 28. background image occasionnelle pépin
- 29. NSBox background image
- 30. div background image