•  Back 
  •  Objects 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-File
                                bitblk


G_IMAGE objects contain a pointer to a BITBLK structure in their ob_spec
field. The BITBLK structure is defined as follows:

typedef struct bit_block
{
    WORD            *bi_pdata;
    WORD            bi_wb;
    WORD            bi_hl;
    WORD            bi_x;
    WORD            bi_y;
    WORD            bi_color;
} BITBLK;

bi_pdata should point to a monochrome bit image. bi_wb specifies the
width (in bytes) of the image. All BITBLK images must be a multiple of 16
pixels wide therefore this value must be even.

bi_hl specifies the height of the image in scan lines (rows). bi_x and
bi_y are used as offsets into bi_pdata. Any data occurring before these
coordinates will be ignored. bi_color is a standard color WORD where the
fill color specifies the color in which the image will be rendered.