nanogui@linuxhacker.org
nanogui@linuxhacker.org
Subject: RE: Pixmaps
From: Greg Haerr
Date: Thu, 20 May 1999 14:01:33 -0600
> Suppose you have a 1-bit depth bitmap. With a byte-granular quantity
> (i.e., line_len, etc.), how can you specify a non-byte-aligned
> subbitmap? You can't. So if you want to support subbitmaps you have
> to use pixel offsets, not byte offsets, which isn't as simple.
>
Ah yes, I figured you were going to comment on my quick comment.
This can be solved by adding
COORD x,y;
which are the viewpoint's initial starting positions, relative to the bitmap
origin, in pixel units. This is used to create the starting mask and/or pixel
offset, much like the original bitmap will have to if required to blt to a screen
pixel address...
nanogui@linuxhacker.org