[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

1630.0. "GetImage to SetWindowBackgroundPixmap" by VANISH::BAILEY (SS$_end_of_tether) Wed Oct 25 1989 13:45

How do I go about get a screen image set as a window background?


What (I think) I want to do is read a screen image with GetImage
and then set that image as a background with SetWindowBackgroundPixmap

The problem seems to be that GetImage returns a image structure...
but SetWindowBackgroundPixmap wants to get a Pixmap identifer

How do I get the returned image structure converted to a pixmap ?

Anu ideas ?

T.RTitleUserPersonal
Name
DateLines
1630.1MELTIN::dickGvriel::SchoellerWed Oct 25 1989 16:457
First you have to use XCreatePixmap to get a pixmap of the right size.
Then use XPutImage to put the image in the pixmap.
Then use XSetWindowBackgroundPixmap to make that pixmap be the background
of the window.

Dick

1630.2VANISH::BAILEYSS$_end_of_tetherThu Oct 26 1989 18:592
Thanks...