🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mitre.windows.x
Article #2

extracting GC values

#2
From: Barrus
Date: Wed, 13 Mar 1991 18:51
15 lines
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
Technical Details
Message-ID: <1991Mar13.185140.27384@linus.mitre.org>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!apple!agate!linus!linus!sdimax2!barras

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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