Thread View: mitre.windows.x
2 messages
2 total messages
Started by Barrus
Wed, 13 Mar 1991 18:51
extracting GC values
Author: Barrus
Date: Wed, 13 Mar 1991 18:51
Date: Wed, 13 Mar 1991 18:51
15 lines
1070 bytes
1070 bytes
Is there any method in X-windows to extract the values, such as pixel color and linewidth (etc..) back out of a GC type graphics context? They have a generic routine for setting all the values, and various routines to set individual values, but I've yet to see a way to take just the GC resource and get back the actual values that went into it. I need this functionality to write alternate routines for XDrawPoints, XDrawLines, etc that will emulate the same parameter format as normal Xlib routines, but redirect the information elsewhere. Any help will be greatly appreciated. Thanks - Frank
Re: extracting GC values
Author: Jim Gettys
Date: Wed, 13 Mar 1991 20:43
Date: Wed, 13 Mar 1991 20:43
3 lines
557 bytes
557 bytes
New routine in release 4: XGetGCValues Scheifler + Gettys, 2nd edition, page 122-123. - Jim
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads