[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1250.0. "Sharing a Colormap w/ Drawables" by CADSE::LOUREIRO (Dr. Spot) Wed Aug 09 1989 15:17

    Is there any such way to share a created color map between a window
    and a pixmap?  I know it may be possible to share a colormap between
    two windows, but I need the pixmap for "backing store", and would
    like to refresh with the same colors on exposures.
    
    Any help would be appreciated.
    
    Thanks.
    
    						- Rob Loureiro
    						DECview3D Graphics
    

T.RTitleUserPersonal
Name
DateLines
1250.1Pixmaps don't need colormapsHANNAH::MESSENGERBob MessengerWed Aug 09 1989 17:2110
Re: .0

Colormaps are only associated with windows, not pixmaps.  Essentially, a
pixmap is just a series of pixel values; those pixel values aren't associated
with any particular color until you draw them in a window.  You'll be okay
if you draw the same pixel values in your window and pixmap, and copy from
the pixmap to the window in response to expose events.

				-- Bob

1250.2CADSE::LOUREIRODr. SpotThu Aug 10 1989 14:357
    Bob,
    
    	Thanks for the response.  It's what I was looking for, believe it
    	or not.
    
    							- Rob