[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

1665.0. "SETTING/GETTING PIXEL COLORS????" by SPI1::DWORKIN (David Dworkin --LMO4-2/C2 DTN 296-5657) Fri Nov 03 1989 09:42

    I'm writing an application where I need to be able to do two things:
    
      1) Give an x,y location and a color (maybe a 3-tuple), and set the
         pixel at that x,y to the specified color
    
      2) Give an x,y location and get back the color of the pixel at that
         location.
    
    Does anyone know of an easy way of doing this?
    (Please send me mail if you can, PIPA::DDWORKIN or SPI0::DWORKIN)
    
    thanks,
    
    david dworkin
T.RTitleUserPersonal
Name
DateLines
1665.1RTFMMELTIN::dickGvriel::SchoellerFri Nov 03 1989 11:355
Look in chapter 10 in Scheiffler, Gettys and Newman, _X_Window_System_
there you will find information on XCreateImage, XGetPixel, XPutPixel.
You should also look in 6.7 for discussion of XGetImage and XPutImage.

Dick