GD的Lua版本lua-gd.zip

上传者: 39840387 | 上传时间: 2025-07-04 09:11:27 | 文件大小: 435KB | 文件类型: 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

文件下载

资源详情

[{"title":"( 50 个子文件 435KB ) GD的Lua版本lua-gd.zip","children":[{"title":"lua-gd-master","children":[{"title":"lua-gd.ps <span style='color:#111;'> 4.68KB </span>","children":null,"spread":false},{"title":"demos","children":[{"title":"paper.png <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"gifanim2.lua <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"lualogo.lua <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false},{"title":"stdfont.lua <span style='color:#111;'> 609B </span>","children":null,"spread":false},{"title":"lua-gd.png <span style='color:#111;'> 12.93KB </span>","children":null,"spread":false},{"title":"fractal.lua <span style='color:#111;'> 521B </span>","children":null,"spread":false},{"title":"Vera.ttf <span style='color:#111;'> 64.39KB </span>","children":null,"spread":false},{"title":"gifanim3.lua <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"setstyle.lua <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"bugs.jpg <span style='color:#111;'> 11.77KB </span>","children":null,"spread":false},{"title":"circle.lua <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"ttftext.lua <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"clock.lua <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"fontconfig.lua <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"test2.lua <span style='color:#111;'> 506B </span>","children":null,"spread":false},{"title":"colortransparent.lua <span style='color:#111;'> 369B </span>","children":null,"spread":false},{"title":"brush.lua <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"poly.lua <span style='color:#111;'> 463B </span>","children":null,"spread":false},{"title":"counter.lua <span style='color:#111;'> 715B </span>","children":null,"spread":false},{"title":"ttftextex.lua <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"steg.lua <span style='color:#111;'> 9.94KB </span>","children":null,"spread":false},{"title":"gd-open-any.lua <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"ellipse.lua <span style='color:#111;'> 271B </span>","children":null,"spread":false},{"title":"gifanim.lua <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"test.lua <span style='color:#111;'> 936B </span>","children":null,"spread":false},{"title":"utf-8.lua <span style='color:#111;'> 933B </span>","children":null,"spread":false}],"spread":false},{"title":"COPYING <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"luagd.c <span style='color:#111;'> 62.70KB </span>","children":null,"spread":false},{"title":"luagd-2.0.33r3-1.rockspec <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"debian","children":[{"title":"changelog <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"rules <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"control <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":"copyright <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"doc","children":[{"title":"index.html <span style='color:#111;'> 109.79KB </span>","children":null,"spread":false},{"title":"cat.png <span style='color:#111;'> 100.40KB </span>","children":null,"spread":false},{"title":"lua-gd.png <span style='color:#111;'> 12.93KB </span>","children":null,"spread":false},{"title":"sierpinski.png <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"clock-example.png <span style='color:#111;'> 982B </span>","children":null,"spread":false},{"title":"fontconfig-example.png <span style='color:#111;'> 13.49KB </span>","children":null,"spread":false},{"title":"catmsg.png <span style='color:#111;'> 100.53KB </span>","children":null,"spread":false},{"title":"catdiff.png <span style='color:#111;'> 66.58KB </span>","children":null,"spread":false},{"title":"stdfonts.png <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"gifanim.gif <span style='color:#111;'> 6.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.win32 <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"test_features.lua <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"README <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"lua-gd.spec <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明