bitblt.h

Tue, 01 Jan 2002 06:11:43 +0000

author
eric
date
Tue, 01 Jan 2002 06:11:43 +0000
changeset 30
35fad7ec7732
parent 11
30d18cf8bb67
child 33
44d823824a46
permissions
-rw-r--r--

add support for PDF file attributes: author, creator, title, etc.

     1 typedef struct Point
     2 {
     3   u32 x;
     4   u32 y;
     5 } Point;
     7 typedef struct Rect
     8 {
     9   Point upper_left;
    10   Point lower_right;
    11 } Rect;
    13 typedef struct Bitmap
    14 {
    15   u8 *bits;
    16   u32 width;
    17   u32 height;
    18   u32 rowbytes;
    19 } Bitmap;
    22 #define TF_SRC 0xc
    23 #define TF_AND 0x8
    24 #define TF_OR  0xe
    25 #define TF_XOR 0x6
    28 #define FLIP_H    0x1
    29 #define FLIP_V    0x2
    30 #define TRANSPOSE 0x4
    32 #define ROT_0     0x0
    33 #define ROT_90    (TRANSPOSE + FLIP_H)
    34 #define ROT_180   (FLIP_H + FLIP_V)
    35 #define ROT_270   (TRANSPOSE + FLIP_V)
    38 Bitmap *create_bitmap (u32 width, u32 height);
    39 void free_bitmap (Bitmap *bitmap);
    40 boolean get_pixel (Bitmap *bitmap, Point coord);
    41 void set_pixel (Bitmap *bitmap, Point coord, boolean value);
    43 Bitmap *bitblt (Bitmap *src_bitmap,
    44 		Rect src_rect,
    45 		Bitmap *dest_bitmap,
    46 		Point dest_upper_left,
    47 		int scan,
    48 		int tfn);