Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!ames!lll-winken!arisia!sgi!shinobu!odin!fudge!karlton From: karlton@fudge.sgi.com (Phil Karlton) Newsgroups: comp.windows.x Subject: Re: How does the X protocol deal with colors ? Message-ID: <252@odin.SGI.COM> Date: 26 Jul 89 21:29:18 GMT References: <8907261545.AA28766@expo.lcs.mit.edu> Sender: news@odin.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 16 In article <8907261545.AA28766@expo.lcs.mit.edu> TRANLE@INTELLICORP.COM (Minh Tran-Le) writes: >When you have 2 colors: color1 and color2 on 2 pixmaps and you are doing >a copyarea with a specific logical op (something more complex than just >the GxCopy). >Does it use the 2 colormap entries (pixel value) or does it use the rgb >values to do the logical combination ? From Page 400 of the Digital Press "X Window System" book In graphics operations, given a source and estination pixel, the result is computed bitwise on the corresponding bits of the pixels: that is, a Boolean operation is performated in each bit plane. PK Phil Karlton karlton@sgi.com 415-964-1459 ext. 3018