Re: Gamma correction using GDK/directly accessing pixmap pixels



On Fri, 2001-11-30 at 23:01, Havoc Pennington wrote:

No, the GdkPixmap is server-side. Many X servers support shared memory
pixmaps, but GDK doesn't provide a way to access that feature, so
you'd have to use plain X.

Closest thing in GDK is to use a GdkImage, then copy that to a pixmap.

Note that for both shared pixmaps and GdkImage there are around 20
different image formats you have to deal with, depending on the user's
hardware, unless you can control the hardware that will be used.

The reason for GdkPixbuf is to avoid writing each image manipulation
function 20 times, once for each format, obviously at the expense of
some efficiency.

Havoc

So there is no other way to do gamma correction?
Or a fast algorithm that uses Gdk-pixbuf?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]