navit  0.5.3-trunk
xpm2bmp.h
Go to the documentation of this file.
1 #ifndef Xpm2BMP_H_INCLUDED
2 #define Xpm2BMP_H_INCLUDED
3 
4 #include <windows.h>
5 #include "wingdi.h"
6 
7 typedef struct XPMCOLORENTRY_TAG
8 {
9  char* color_str;
10  unsigned long r;
11  unsigned long g;
12  unsigned long b;
14 
15 typedef struct XPM2BMP_TAG
16 {
17  unsigned short size_x;
18  unsigned short size_y;
19  unsigned short colors;
20  unsigned short pixels;
21  unsigned short chars_per_pixel;
22  unsigned short hotspot_x;
23  unsigned short hotspot_y;
24 
27 
28  unsigned char *dib;
29  unsigned char *wimage_data;
30  BITMAPINFOHEADER *bmih;
31 
32  unsigned char *dib_trans;
33  unsigned char *wimage_data_trans;
34  BITMAPINFOHEADER *bmih_trans;
35 
37 
38 
39 PXPM2BMP Xpm2bmp_new(void);
40 int Xpm2bmp_load( PXPM2BMP pXpm2bmp, const char* filename );
41 int Xpm2bmp_paint( PXPM2BMP pXpm2bmp, HDC hdc, int x1,int y1 );
42 
43 
44 #endif // Xpm2BMP_H_INCLUDED
char filename[8]
Definition: garmin_img.c:1
Definition: xpm2bmp.h:16
unsigned short hotspot_x
Definition: xpm2bmp.h:22
PXPMCOLORENTRY color_entires
Definition: xpm2bmp.h:26
unsigned short hotspot_y
Definition: xpm2bmp.h:23
unsigned char * dib_trans
Definition: xpm2bmp.h:32
unsigned char * dib
Definition: xpm2bmp.h:28
unsigned char * wimage_data
Definition: xpm2bmp.h:29
unsigned short chars_per_pixel
Definition: xpm2bmp.h:21
unsigned short size_x
Definition: xpm2bmp.h:17
int color_entires_size
Definition: xpm2bmp.h:25
BITMAPINFOHEADER * bmih_trans
Definition: xpm2bmp.h:34
unsigned short size_y
Definition: xpm2bmp.h:18
unsigned char * wimage_data_trans
Definition: xpm2bmp.h:33
unsigned short colors
Definition: xpm2bmp.h:19
BITMAPINFOHEADER * bmih
Definition: xpm2bmp.h:30
unsigned short pixels
Definition: xpm2bmp.h:20
Definition: xpm2bmp.h:8
unsigned long g
Definition: xpm2bmp.h:11
unsigned long b
Definition: xpm2bmp.h:12
unsigned long r
Definition: xpm2bmp.h:10
char * color_str
Definition: xpm2bmp.h:9
int Xpm2bmp_paint(PXPM2BMP pXpm2bmp, HDC hdc, int x1, int y1)
Definition: xpm2bmp.c:262
int Xpm2bmp_load(PXPM2BMP pXpm2bmp, const char *filename)
Definition: xpm2bmp.c:258
struct XPM2BMP_TAG XPM2BMP
struct XPMCOLORENTRY_TAG * PXPMCOLORENTRY
struct XPM2BMP_TAG * PXPM2BMP
PXPM2BMP Xpm2bmp_new(void)
Definition: xpm2bmp.c:252
struct XPMCOLORENTRY_TAG XPMCOLORENTRY