[Gimp-developer] Question about how Gimp displays multiple layers

2008-03-31 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm working on a gtk application, and I have a need to display a composite image. i.e. a base image, with a 2nd (much smaller) image overlaying a part of the bigger 1st image. Periodically I may need to move the smaller image to a different

Re: [Gimp-developer] Question about how Gimp displays multiple layers

2008-03-31 Thread David Gowers
Hello. I cannot address the issue of widgets. Anyway GIMP does not use widgets to display individual layers, only the final composition, app/display holds the code IIRC(quite a bit of code -- someone else might be able to narrow it down further.). The image is composited and THEN displayed (in one

Re: [Gimp-developer] Question about how Gimp displays multiple layers

2008-03-31 Thread Bill Skaggs
Gimp handles all this with its own special code, which you most definitely don't want to try to replicate. There are several ways to handle this. Basically the thing you have to know is that widget drawing happens in response to expose events, and what you need to accomplish is to make the large