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