navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
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 
26  PXPMCOLORENTRY color_entires;
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 
36 } XPM2BMP, *PXPM2BMP;
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
unsigned char * dib_trans
Definition: xpm2bmp.h:32
PXPM2BMP Xpm2bmp_new(void)
Definition: xpm2bmp.c:253
unsigned char * wimage_data_trans
Definition: xpm2bmp.h:33
struct XPMCOLORENTRY_TAG * PXPMCOLORENTRY
unsigned short hotspot_x
Definition: xpm2bmp.h:22
unsigned short size_y
Definition: xpm2bmp.h:18
unsigned short chars_per_pixel
Definition: xpm2bmp.h:21
unsigned long g
Definition: xpm2bmp.h:11
struct XPM2BMP_TAG XPM2BMP
unsigned short size_x
Definition: xpm2bmp.h:17
unsigned char * dib
Definition: xpm2bmp.h:28
unsigned char * wimage_data
Definition: xpm2bmp.h:29
int Xpm2bmp_paint(PXPM2BMP pXpm2bmp, HDC hdc, int x1, int y1)
Definition: xpm2bmp.c:265
char filename[8]
Definition: garmin_img.c:129
unsigned long r
Definition: xpm2bmp.h:10
Definition: xpm2bmp.h:15
BITMAPINFOHEADER * bmih
Definition: xpm2bmp.h:30
int color_entires_size
Definition: xpm2bmp.h:25
unsigned short pixels
Definition: xpm2bmp.h:20
struct XPMCOLORENTRY_TAG XPMCOLORENTRY
char * color_str
Definition: xpm2bmp.h:9
struct XPM2BMP_TAG * PXPM2BMP
Definition: xpm2bmp.h:7
unsigned short hotspot_y
Definition: xpm2bmp.h:23
PXPMCOLORENTRY color_entires
Definition: xpm2bmp.h:26
unsigned long b
Definition: xpm2bmp.h:12
unsigned short colors
Definition: xpm2bmp.h:19
BITMAPINFOHEADER * bmih_trans
Definition: xpm2bmp.h:34
int Xpm2bmp_load(PXPM2BMP pXpm2bmp, const char *filename)
Definition: xpm2bmp.c:260