[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

2843.0. "Invert window pixmap" by EVOAI2::DAN_M (Maya DAN) Thu May 31 1990 09:21

    I'd like to invert a bitmap image (to obtain a reverse video effect)
    when I choose the INVERT item of a pop-up menu (for examples).
    
    Because I don't want to manage expose event, I have first associated 
    the original pixmap with the background of my window and then, freed
    the pixmap.
    
    Is there asolution to get back my pixmap ?
    How can I invert my window background ?
    
    			Thanks for all suggestions.
    							
				Maya

T.RTitleUserPersonal
Name
DateLines
2843.1STAR::KLEINSORGEFred Kleinsorge, VMS DevelopmentThu May 31 1990 12:598
    
    My understanding from long ago (wanting to use a clever hack for
    backing store) is that you can't.  The server can do a bunch of
    server-specific optimizations that makes modifying the original
    background PIXMAP unreliable.  You need to create a new PIXMAP and
    associate it with the (maybe a new?) window.
    
    
2843.2DECWIN::FISHERPrune Juice: A Warrior's Drink!Thu May 31 1990 18:575
You can keep the pixmap (i.e. don't delete it after you set it as the back-
ground) and then when you want to invert, do so in the pixmap and then set
that pixmap as the background of the window again.

Burns