From: Claude Marche MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <16138.54573.314788.280376 at mailhost.lri.fr> Date: Tue, 8 Jul 2003 16:29:01 +0200 To: stalkern2 at tin.it Cc: lablgtk at kaba.or.jp Subject: Re: animation: pixmap transparency? In-Reply-To: <200307081555.38754.stalkern2 at tin.it> References: <200307021756.22997.stalkern2 at tin.it> <20030708093841E.garrigue@kurims.kyoto-u.ac.jp> <200307080926.20760.stalkern2@tin.it> <200307081555.38754.stalkern2@tin.it> Sender: Claude Marche >>>>> "Stalkern" == Stalkern 2 writes: Stalkern> Il Tuesday 08 July 2003 09:26, Stalkern 2 ha scritto: >> OK, I've been merging this by a previous code sample from Claude Marché and >> now I get transparency: but it seems that setting the clip mask fools the >> callback that restores the background. >> So, before having transparency I had a background that could recover from >> exposure, now it can not. >> Another buggy feature is that I have to hide the footprints of the moving >> pixmap by hand. >> >> To test this code, one can download the images bkg.xpm and fly.xpm from >> http://www.connettivo.net/cntdownload/XPMs/ >> >> Any commentary, suggestion, hint is welcome. >> Thank you >> Ernesto Stalkern> I've been using lines for putting into evidence the exposed area (I just Stalkern> outline a crossed box over the exposed area caught by my background-restoring Stalkern> callback). Stalkern> Again, the use of a mask seems to forbid redrawing of areas external to the Stalkern> clipped image. Hi Ernesto, I think you should deactivate the clip mask before drawing your background. May be such a possibility is missing in lablgtk: directly in C, one may call Gdk_GC::set_clip_mask without argument to unset the clip mask, but I see no way to call it without argument from lablgtk. lablgtk maintainers, in ideas ? - claude -- | Claude Marché | mailto:Claude.Marche@lri.fr | | LRI - Bât. 490 | http://www.lri.fr/~marche/ | | Université de Paris-Sud | phoneto: +33 1 69 15 64 85 | | F-91405 ORSAY Cedex | faxto: +33 1 69 15 65 86 |