home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter49 / maskim.h < prev   
Text File  |  1997-06-18  |  722b  |  19 lines

  1. /* MASKIM.H: structures used for storing and manipulating masked
  2.    images */
  3.  
  4. /* Describes one alignment of a mask-image pair */
  5. typedef struct {
  6.    int ImageWidth; /* image width in addresses in display memory (also
  7.                       mask width in bytes) */
  8.    unsigned int ImagePtr; /* offset of image bitmap in display mem */
  9.    char *MaskPtr;  /* pointer to mask bitmap */
  10. } AlignedMaskedImage;
  11.  
  12. /* Describes all four alignments of a mask-image pair */
  13. typedef struct {
  14.    AlignedMaskedImage *Alignments[4]; /* ptrs to AlignedMaskedImage
  15.                                          structs for four possible destination 
  16.                                          image alignments */
  17. } MaskedImage;
  18.  
  19.