thomas@cme-durer.ARPA (Bruce Thomas) (03/26/88)
I need to know the format for a file holding a bit-map image for display under X windows V10. This file format will have to handle images of different sizes. What are the functions for displaying this image? Bruce Thomas NBS
bob@tut.cis.ohio-state.edu (Bob Sutterfield) (03/26/88)
In article <367@plan.cme-durer.ARPA> thomas@cme-durer.ARPA (Bruce Thomas) writes: >I need to know the format for a file holding a bit-map image for >display under X windows V10. The bitmap storage format is documented in the bitmap(1) manual page. >What are the functions for displaying this image? You want to start with a look at XReadBitmapFile(), as defined in Xlib/XReadBitmapF.c. If you plan on using larger bitmaps (like a full-screen background), you probably want to change the line while ((status = fscanf (file, "#define %80s %2d\n", variable, &value))==2) to while ((status = fscanf (file, "#define %80s %d\n", variable, &value))==2) -- Bob Sutterfield, Department of Computer and Information Science The Ohio State University; 2036 Neil Ave. Columbus OH USA 43210-1277 bob@cis.ohio-state.edu or ...!cbosgd!osu-cis!bob