[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

2662.0. "Image and Pixmap question" by HKOVC::TERENCE (From Middlesex, UWO) Thu Apr 26 1990 00:35

    Among the following 3 methods
    
    1) XCreateImage and then XPutImage into a window
    2) XCreateImage, XPutImage into a pixmap, and then XCopyArea into a
       window
    3) XCreatePixmapFromBitmapData and then XCopyArea into a window
    
    Which one is the fastest in drawing a picture?
    Any trade off?
    
    Thanx in advance
    
    -Terry
T.RTitleUserPersonal
Name
DateLines
2662.1GILROY::kleeKen LeeThu Apr 26 1990 20:065
1) and 3) are the same thing.  2) should be slower since there's an
extra protocol request and extra copy in the server, but this also
keeps a copy for later use, if desired.

Ken
2662.2DECWIN::FISHERPrune Juice: A Warrior's Drink!Mon Apr 30 1990 15:533
re .1:  I think you mean 2 and 3 are the same.

Burns
2662.3GILROY::kleeTue May 01 1990 14:012
Yes, you're right.  XCreatePixmapFromBitmapData creates a pixmap and an
image, then puts the image in the pixmap.