Path: utzoo!news-server.csri.toronto.edu!rutgers!apple!agate!linus!linus!sdimax2!barras From: barras@sdimax2.mitre.org (Barrus) Newsgroups: mitre.windows.x,comp.windows.x Subject: extracting GC values Message-ID: <1991Mar13.185140.27384@linus.mitre.org> Date: 13 Mar 91 18:51:40 GMT Sender: news@linus.mitre.org (News Service) Distribution: usa Organization: The MITRE Corporation, Bedford MA Lines: 15 Nntp-Posting-Host: sdimax2.mitre.org 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