[ wxwindows-Patches-1407318 ] bitmap clipping / transparency mask (X11 port)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ wxwindows-Patches-1407318 ] bitmap clipping / transparency mask (X11 port)

SourceForge.net
Patches item #1407318, was opened at 2006-01-16 12:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1407318&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: X11 specific
Group: bug fix
Status: Open
Resolution: None
Priority: 5
Submitted By: Burkhard Fischer (bf089)
Assigned to: Nobody/Anonymous (nobody)
Summary: bitmap clipping / transparency mask (X11 port)

Initial Comment:
Hi,

bitmap clipping doesn't work correctly in the wxX11 port.

wxWindowDC::DoDrawBitmap() in src/x11/dcclient.cpp
contains the deactivated gtk code for this
(gdk_gc_set_stipple() etc.)

The patch contains an similar approach using the xlib
functions directly:

 1. If the bitmap has to be clipped: create a new
Pixmap, fill it with the transparency color, fill the
clip rectangle with foreground color and use
XSetClipMask() to do the clipping

2. If a transparency mask is present, use it directly
via XSetClipMask()

3. If clipping has to be done and a transparency mask
is present: like 1.) but the transparency mask is used
for the XSetStipple() call. Therefore the following
filling of the clipping rectangle takes into account
the given transparency mask.

bye,
Burkhard

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1407318&group_id=9863

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]