GdkPixbuf makes PNG look jaggy
- From: "Jason Bodnar" <jason shakabuku org>
- To: gtk-list gnome org
- Subject: GdkPixbuf makes PNG look jaggy
- Date: Fri, 5 Jul 2002 18:27:17 -0500
I'm trying to display a logo I've made in my application. It's in PNG format
and looks fine in the GIMP and Galeon but in my application it looks jaggy.
Here's the code I'm using to display it (in perl):
# Load and pack the logo
my $logo = Gtk::Gdk::Pixbuf->new_from_file(PHOTOGAL_LOGO);
my ($pixmap, $mask) = $logo->render_pixmap_and_mask(100);
$hbox->pack_start(new Gtk::Pixmap($pixmap, $mask), TRUE, TRUE, 0);
What am I doing wrong? Is there a better way to display a png than converting
it to a Gtk::Pixmap?
I can send the logo if necessary.
Thanks,
Jason
--
Jason Bodnar
jason shakabuku org
http://www.shakabuku.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]