slow pixbuf drawing, how get rid of alpha channel
- From: Fritz Ganter <ganter ganter at>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: slow pixbuf drawing, how get rid of alpha channel
- Date: 11 May 2003 18:22:02 +0200
Hello!
I'm using image=gdk_pixbuf_new_from_file to load gifs and png files.
Then I have to do
tempimage = gdk_pixbuf_new (GDK_COLORSPACE_RGB, 1, 8, 1280, 1024);
There my program eats 30-35% of CPU. This is much more than the old
gtk+1.2 version.
If I use no alpha channel instead
gdk_pixbuf_new (GDK_COLORSPACE_RGB, 0,...);
the cpus load drops down to about 10-15% which is ok.
Unfurtunatly it works only with png images, if a gif is loaded i get:
** (gpsdrive:20432): CRITICAL **: file pixops.c: line 1618
(pixops_scale): assertion `!(src_has_alpha && !dest_has_alpha)' failed
How can I remove the alpha channel from image if it is a gif-file?
--
Fritz "der mit dem Linux tanzt" Ganter http://www.kraftvoll.at
Key fingerprint = 555A DDBB 3985 16FF CD41 2031 C485 1783 BF34 728F
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]