C함수 정의
extern unsigned int image_decode_header(const unsigned char *in,
unsigned char *frames, unsigned char *bpp, unsigned short *width, unsigned short
*height);
extern unsigned int image_decompress(const unsigned char *in,
void *out);
extern int image_configure(const unsigned char *in, int
start_x, int start_y, int lcd_type, int lcd_color);
C#함수
정의
[DllImport("lite_dll.lib")] static extern int image_configure([In] byte[]
input, int start_x, int start_y, int lcd_type, int lcd_rotate , int
lcd_color);
[DllImport("lite_dll.lib")] static extern int
image_decode_header([In] byte[] input, ref byte frames, ref byte bpp, ref short
width, ref short height);
[DllImport("lite_dll.lib")] static extern int
image_decompress([In,Out] byte[] input, [In,Out] byte[] output);
아래는
사용법입니다.
image_configure(byImgArray , 0 , 0 , 0 , 0 ,
0);
image_decode_header(byImgArray , ref rlsData.byFrame, ref
rlsData.bitdepth , ref rlsData.width , ref
rlsData.height);
image_decompress(byImgArray , rlsData.byRlsArray);