Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!csusac!csuchico.edu!csuchico.edu!warlock From: warlock@csuchico.edu (John Kennedy) Newsgroups: comp.windows.x Subject: Drawable <--> user-defined data Keywords: drawable Message-ID: <1990Mar02.220228.24964@csuchico.edu> Date: 2 Mar 90 22:02:28 GMT Sender: news@csuchico.edu (USENET) Reply-To: warlock@csuchico.edu (John Kennedy) Organization: California State University, Chico Lines: 30 I'm looking for the "best" way to transfer user-defined data (say an array of char) and put it into a drawable (color). The only way I can see now with the current X11R4 Xlib documentation is to convert the drawable into an XImage and the get at the data field. In addition, I have the following situation: Running on a Sun 3/60 or SPARC using cgfour and cgsix frame buffers. X11R4 (Standard distribution) We're looking for *speed* out of this operation The operation will be used to copy the contents of the frame buffer memory into a drawable so the screen can be fully managed by X when we aren't using speedy frame-buffer functions (for those in the know, the cgfour is too slow to alter quickly using window-related functions, so a program I wrote directly accesses frame buffer memory, leaving the screen with incorrect contents as far as X is concerned). Basically, I want to take the image on the screen and store it in the drawable so X has the same image. The area X and I are sharing is a 769 by 769 square. Warlock, AKA +---------------------------------------------------- John Kennedy | uucp: lampoon!warlock@csuchico.edu CSCI Student | internet: warlock@csuchico.edu CSU Chico +---------------------------------------------------- -- Warlock, AKA +---------------------------------------------------- John Kennedy | uucp: lampoon!warlock@csuchico.edu CSCI Student | internet: warlock@csuchico.edu CSU Chico +----------------------------------------------------