nanogui: Pixmaps


Previous by date: 20 May 1999 17:15:10 -0000 Re: nanoX for ELKS, Greg Haerr
Next by date: 20 May 1999 17:15:10 -0000 Re: Pixmaps, Greg Haerr
Previous in thread: 20 May 1999 17:15:10 -0000 Re: Pixmaps, Greg Haerr
Next in thread: 20 May 1999 17:15:10 -0000 Re: Pixmaps, Greg Haerr

Subject: Re: Pixmaps
From: Ben Pfaff ####@####.####
Date: 20 May 1999 17:15:10 -0000
Message-Id: <87n1yzr71r.fsf@pfaffben.user.msu.edu>

Greg Haerr ####@####.#### writes:

   I suggest the following structure:

	   typedef struct {
		   COORD	 width;

Add a `virtwidth' or `line_len' member.  Then you get subbitmap and
subscreen (rectangular window) support "for free" with manipulation of
the bits pointer.

		   COORD height;
		   int planes;
		   int bitsperpixel;

Are `planes' + `bitsperpixel' enough?  You might need a `visual'
member also for odd image formats.

		   IMAGEBITS bits[];
		   // image data here, optionally followed by color data

Make it a pointer, not an array.  Otherwise, how can you make a bitmap
that's part of the screen?

	   } BITMAP;

	   In addition, a tag along for palette data:
		   int ncolors;
		   COLORVAL palette[];
-- 
"To the engineer, the world is a toy box full of sub-optimized and
 feature-poor toys." --Scott Adams

Previous by date: 20 May 1999 17:15:10 -0000 Re: nanoX for ELKS, Greg Haerr
Next by date: 20 May 1999 17:15:10 -0000 Re: Pixmaps, Greg Haerr
Previous in thread: 20 May 1999 17:15:10 -0000 Re: Pixmaps, Greg Haerr
Next in thread: 20 May 1999 17:15:10 -0000 Re: Pixmaps, Greg Haerr


Powered by ezmlm-browse 0.20.