[Gimp-developer] Using drawables with preview

Sven Neumann sven at gimp.org
Mon Dec 4 11:33:58 PST 2006


Hi,

On Sun, 2006-12-03 at 14:52 -0800, triffid at oink.co.uk wrote:

> What I'm writing is straightforward- it's a linear (i.e. one-dimensional) unsharp mask. (I'm probably not the first to do this, but it's a good learning opportunity, and it confirmed my hunch that it would work better against motion blur than the standard version). The line is supposed to illustrate the angle and size of the convolution.

In that case you probably want to draw on the preview window without
fiddling with the buffers that the preview widget uses. Just connect
after the expose-event handler and use GDK or Cairo drawing API to draw
on the preview area.


Sven




More information about the Gimp-developer mailing list