Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-12 Thread Mark Vojkovich
On Tue, 11 Dec 2001, Jonathan Walther wrote: > On Tue, Dec 11, 2001 at 05:07:02PM -0800, Mark Vojkovich wrote: > > Actually, if the arrow is simple, the fastest way to draw > >it would be with a rectangle and a polygon (triangle). That > >would be faster than an arrow shaped stipple. > > Alas

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-12 Thread Dr Andrew C Aitchison
On Tue, 11 Dec 2001, Jonathan Walther wrote: > I have a square area, lets say 400x400. I frequently re-paint the > whole area with different sections of a larger drawable. However > I have another little image that I draw on top, 30x30 in size. > When I draw this little box, I have no problem d

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Keith Packard
Around 20 o'clock on Dec 11, Jonathan Walther wrote: > Alas, the arrow is a png that uses 200 different colors, plus has alpha > channel information which I'm ignoring for now. You'll end up using the Render extension sooner or later in any case; the alpha channel information can't be used wit

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Jonathan Walther
On Tue, Dec 11, 2001 at 05:07:02PM -0800, Mark Vojkovich wrote: > Actually, if the arrow is simple, the fastest way to draw >it would be with a rectangle and a polygon (triangle). That >would be faster than an arrow shaped stipple. Alas, the arrow is a png that uses 200 different colors, plus

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Jonathan Walther
On Tue, Dec 11, 2001 at 06:42:01PM -0800, Keith Packard wrote: >> What is the method that involves the least amount of X calls, or at >> least is the fastest possible, method to repaint my window? > >You can do this in one call with the Render extension -- create a 1 bit >mask that has 0 where th

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Keith Packard
Around 16 o'clock on Dec 11, Jonathan Walther wrote: > Thanks to your description, I don't need to know the following > information now, but its been bugging the heck out of me: > how did Keith Packard make his twn menu-windows translucent? Serious server hacking suitable for a rigged demo only

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Keith Packard
Around 1 o'clock on Dec 11, Jonathan Walther wrote: > What is the method that involves the least amount of X calls, or at > least is the fastest possible, method to repaint my window? You can do this in one call with the Render extension -- create a 1 bit mask that has 0 where the image is and

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Mark Vojkovich
On Tue, 11 Dec 2001, Jonathan Walther wrote: > Thank you Mark. Your description was just what the doctor ordered. I > can get rid of clip masks entirely now, and a bunch of other > extraneous operations. Actually, if the arrow is simple, the fastest way to draw it would be with a rectangle

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Jonathan Walther
Thank you Mark. Your description was just what the doctor ordered. I can get rid of clip masks entirely now, and a bunch of other extraneous operations. Thanks to your description, I don't need to know the following information now, but its been bugging the heck out of me: how did Keith Packard

Re: [Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Mark Vojkovich
On Tue, 11 Dec 2001, Jonathan Walther wrote: > The question, then the context: > > I have a bitmap, A. I set this bitmask as the clip mask > in my GC. If I modify A, do I have to re-call XSetClipMask() > for the modifications to take effect? Yes. > > I have a square area, lets say 400x4

[Xpert]QUESTION: subtle behavior of XSetClipMask() ?

2001-12-11 Thread Jonathan Walther
The question, then the context: I have a bitmap, A. I set this bitmask as the clip mask in my GC. If I modify A, do I have to re-call XSetClipMask() for the modifications to take effect? I have a square area, lets say 400x400. I frequently re-paint the whole area with different sections of a