1 /****************************************************************************/
3 /* The FreeType project -- a free and portable quality TrueType renderer. */
5 /* Copyright 1996-1999 by */
6 /* D. Turner, R.Wilhelm, and W. Lemberg */
8 /* blitter.h: Support for blitting of bitmaps with various depth. */
10 /****************************************************************************/
21 /* blit a source bitmap to a target bitmap or pixmap */
24 /* target :: target bitmap or pixmap */
25 /* source :: source bitmap (depth must be 1) */
26 /* target_depth :: pixel bit depth of target map */
27 /* x_offset :: horizontal offset of source in target */
28 /* y_offset :: vertical offset of source in target */
29 /* color :: color to use when blitting to color pixmap */
32 /* error code. 0 means success */
35 /* an error occurs when the target bit depth isn't supported, or */
36 /* if the source's bit depth isn't 1. */
38 /* the offsets are relative to the top-left corner of the target */
39 /* map. Positive y are downwards. */
42 int Blit_Bitmap( TT_Raster_Map
* target
,
43 TT_Raster_Map
* source
,