GD的Lua版本lua-gd.zip
lua-gd 是 LibGD 的 Lua 语言绑定版本。示例代码:require "gd" local gray1 = im:colorResolve(128, 128, 128) -- Using the colon notation local gray2 = gd.colorResolve(im, 128, 128, 128) -- Using a C-style notation下载和安装:gcc -o gd.so `gdlib-config --features |sed -e "s/GD_/-DGD_/g"` `gdlib-config --cflags` `pkg-config lua5.1 --cflags` -O3 -Wall -shared `gdlib-config --ldflags` `gdlib-config --libs` `pkg-config lua5.1 --libs` -lgd luagd.c lua test_features.lua Lua-GD version: lua-gd 2.0.33r2 Lua-GD features: PNG support ..................... Enabled GIF support ..................... Enabled JPEG support .................... Enabled XPM/XBM support ................. Enabled FreeType support ................ Enabled Fontconfig support .............. Enabled 标签:luagd
- 1
- 粉丝: 784
- 资源: 3万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助