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.

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