| 980 | // |
| 981 | |
| 982 | static int PushImageInfo(lua_State* L, PNGImageFile& image) { |
| 983 | if (!image.isOpen()) { |
| 984 | return luaL_pushnil(L); |
| 985 | } |
| 986 | |
| 987 | lua_pushinteger(L, image.getWidth()); |
| 988 | lua_pushinteger(L, image.getHeight()); |
| 989 | lua_pushinteger(L, image.getNumChannels()); |
| 990 | |
| 991 | return 3; |
| 992 | } |
| 993 | |
| 994 | |
| 995 | static int PushImageData(lua_State* L, PNGImageFile& image) { |
no test coverage detected