Didier Verna <didier(a)xemacs.org> writes:
wmperry(a)aventail.com (William M. Perry) wrote:
> What is the difference in these calls?
I assume you mean XDrawImageString, not XDrawStringImage ?
Yup - brain shutdown on my part.
XDrawImageString fills the destination with the GC background and
then
paints the texte with the GC foreground. On the contrary, XDrawString
uses the text (rendered accordingto the GC) as an additional mask. That's
the way you would create a shaped window with a transparent text for
instance.
Hrmm... so to get the equivalent of XDrawImageString I would need to fill
the rectangle manually first, then call gdk_draw_text (which boils down to
XDrawString)? Ick.
-bp