Re: Why doesn't GTK+ use RLE for the stock icons?
- From: Havoc Pennington <hp redhat com>
- To: Sven Neumann <sven gimp org>
- Cc: gtk-devel-list gnome org
- Subject: Re: Why doesn't GTK+ use RLE for the stock icons?
- Date: 30 Jul 2002 13:08:43 -0400
Sven Neumann <sven gimp org> writes:
> oh, I think I've found the answer myself in the GTK+ documentation:
>
> GTK+ ships with a program called gdk-pixbuf-csource which allows for
> conversion of GdkPixbufs into such a inline representation. In
> almost all cases, you should pass the --raw flag to
> gdk-pixbuf-csource. For the typical case where the inline pixbuf is
> read-only static data, you don't need to copy the pixel data unless
> you intend to write to it, so you can pass FALSE for copy_pixels.
> (If you pass --rle to gdk-pixbuf-csource, a copy will be made even
> if copy_pixels is FALSE, so using this option is generally a bad
> idea.)
>
> So, using the --rle flag probably only makes sense if disk-space is
> very low.
>
Exactly, the idea is to keep the pixel data in read-only memory and
thus save RAM (at the expense of disk space, but most people care more
about RAM)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]