Re: Why doesn't GTK+ use RLE for the stock icons?



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]