Re: Gtk Pixmap and png
- From: Arno <dark-arno ifrance com>
- To: RevX gmx at
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Gtk Pixmap and png
- Date: Thu, 25 Jul 2002 14:15:18 +0200
RevX gmx at wrote:
Hi,
Now it's good, the background of the icone is good. But like you can see
in the screenshot (http://www.arnoraes.freesurf.fr/Forum/icone.png), the
contour of the icones is not fuzzy.
Two things to check:
1. Are you sure you used an 8bit alpha/transparency layer/channel for your
PNG?
2. Is GTK+ able to display PNGs with that 8bit alpha channel? (As what I
have seen
with applying themes it is/seems possible)
I have found an other function : gtk_image_new_from_file. And with this
function, it's good. I don't know why but it's good.
pixmap = gtk_image_new_from_file("../Back-prelight.png");
gtk_toolbar_insert_item (GTK_TOOLBAR (toolbar),
"Back",
"bla bla",
NULL,
pixmap,
NULL,
NULL,
-1);
So, how could I use png picture with transparent background.
How did you draw that icon (with what programme?)?
I use gimp.
Cheers,
Michael.
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]