home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:14164 comp.windows.x.intrinsics:121
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!network.ucsd.edu!calmasd!sas
- From: sas@calmasd.Prime.COM (Shirley Sloper)
- Newsgroups: comp.windows.x,comp.windows.x.intrinsics
- Subject: X graphics question
- Keywords: Ximage, pixmap
- Message-ID: <4774@calmasd.Prime.COM>
- Date: 21 Jul 92 22:11:40 GMT
- Followup-To: comp.windows.x
- Distribution: usa
- Organization: Computervision, San Diego, CA
- Lines: 33
-
-
- Hi,
-
- I need help with a graphics application I am porting to X11R4,
- Athena widgets (platforms: sun/sparc, DEC)
-
- The application displays a 512x512 pixel image and
- updates areas of the image. The graphics module receives
- one row at a time to display. The data consists of
- an array of colormap indices, the column and row of the first
- pixel to display and the number of pixels to display.
-
- raster_write_row(pixelBuf, count, x, y)
- char *pixelBuf;
- int count,x,y;
-
- I am currently creating an Ximage of width count and height 1,
- putting the image in the window, and then destroying the
- image.
-
- This works, but there's a better way, right? I'm confused by
- images, what kind of image should I be creating? How does the
- image relate to a pixmap? Is there a good reference on this?
- Or a pd program that does something similar?
-
- Thanks for any help (remember, be nice...)
-
- Shirley
- --
- ******************** Shirley Sloper *******************
- * sas@calmasd.prime.com (619) 587-3186 *
- * Computervision, a division of Prime Computer, San Diego, CA *
- ***************************************************************
-