Delphi与C/C++的数据转化
小弟在C++下有一个数据结构
struct potrace_bitmapindex_s {
int fillcolor;//底色,也是填充色
int w, h; /* width and height, in pixels */
unsigned char *map; /* raw data, w*h BYTE */
int *Pal;//索引表的指针
};
porrace_bitmapindex_s = record
fillcolor: integer;
w, h: integer;
map: uchar;
pal: pinteger;
end;