Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/document/image_export.md
T
csh e1f7ce052c feat(skills): add tsl api reference skill
Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
2026-07-07 16:36:15 +08:00

1.5 KiB

文档处理 / 图片导出

wgBitmaptojpg(bitmap)

将格式为Bitmap的图形码转化为Jpeg图形格式编码。本地执行函数。 PS:转化后图片大小会变小,也就意味着,Bitmap格式输出的图片要高清一些。

参数 类型 说明
bitmap binary bitmap类型图的二进制码。

返回:binary

wgCreatebitmap(width, height)

设置图片大小,本地执行函数,结合函数wg_drawgraph一起使用。本地执行函数。

参数 类型 说明
width any 整型,图形宽度,单位:像素。
height any 整型,图形长度,单位:像素。

返回:binary

wgDrawgraph(graph_data, config_data, bitmap)

将天软技术图形生成bitmap图形。本地执行函数。

参数 类型 说明
graph_data array 天软图形类型,天软图形。
config_data array 数组,图形属性。各属性由对应的下标值指定,具体如下:
bitmap binary bitmap类型图的二进制码,图片大小属性,由wg_createbitmap生成得到。

返回:binary