Path: utzoo!mnetor!uunet!husc6!tut.cis.ohio-state.edu!bob From: bob@tut.cis.ohio-state.edu (Bob Sutterfield) Newsgroups: comp.windows.x Subject: Re: Need help displaying bit-mapped images Message-ID: <8864@tut.cis.ohio-state.edu> Date: 26 Mar 88 05:46:00 GMT References: <367@plan.cme-durer.ARPA> Organization: The Ohio State University Dept of Computer & Information Science Lines: 21 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