summaryrefslogtreecommitdiff
path: root/im/src/lua5/imlua_image.h
blob: 0a398635a9da9190fc7f5aee3425a26a9d532c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/** \file
 * \brief IM Lua 5 Binding
 *
 * See Copyright Notice in im_lib.h
 * $Id: imlua_image.h,v 1.1 2008/10/17 06:16:32 scuri Exp $
 */

#ifndef __IMLUA_IMAGE_H
#define __IMLUA_IMAGE_H

#if	defined(__cplusplus)
extern "C" {
#endif


typedef struct _imluaImageChannel {
  imImage *image;
  int channel;
} imluaImageChannel;

typedef struct _imluaImageRow {
  imImage *image;
  int channel;
  int row;
} imluaImageRow;

void imlua_open_image(lua_State *L);

int imlua_pushimageerror(lua_State *L, imImage* image, int error);
void imlua_pushimage(lua_State *L, imImage* image);
imImage* imlua_checkimage(lua_State *L, int param);


#ifdef __cplusplus
}
#endif

#endif