CppTexturePacker 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
CppTexturePacker 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
CppTexturePacker 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT
开发语言 C/C++
操作系统 Windows
软件类型 开源软件
开源组织
地区 国产
投 递 者 依星net188_com
适用人群 未知
收录时间 2023-08-24

软件简介

CppTextu是一款免费的图片打包工具,软件小巧易用,主流游戏图片格式,如bmp,jpg,png可以打包为png大图,采用命令行格式,简单的命令如下:

usage: CppTextu --input_dir=string [options] ...
options:
  -i, --input_dir                  input dir (string)
  -n, --ouput_name                 output atlas name (string [=out])
  -o, --ouput_dir                  output dir (string [=./])
  -p, --base_image_path            base image path (string [=])
  -f, --image_format               output image format (string [=png])
  -w, --max_width                  max atlas width (unsigned int [=4096])
  -h, --max_height                 max atlas height (unsigned int [=4096])
  -r, --enable_rotate              enable rotate (bool [=0])
  -s, --force_square               force square (bool [=0])
      --border_padding             border padding (unsigned char [= ])
      --shape_padding              shape padding (unsigned char [= ])
      --inner_padding              inner padding (unsigned char [= ])
  -b, --reduce_border_artifacts    reduce border artifacts (bool [=0])
  -t, --trim_mode                  trim pixel alpha less than input value (unsigned char [= ])
  -e, --extrude                    extrude (unsigned char [= ])
  -?, --help                       print this message

举例说明:

1.生成单张图片,将456文件夹下的所有图片打包输出到789文件夹,输出文件名称为test,图片最大尺寸4096,命令如下:

CppTextu -i 456 -n test -o 789  -w 4096 -h 4096

此命令仅生成一张最大尺寸(为宽4096,高4096)的图片,最大尺寸取值范围为(1~65535),如果456文件夹中的图片非常多,超过了设置的最大值,可以使用下面的命令,生成多张大图,以此来满足需要。

2.生成多张图片,这里同样使用上面的文件夹来做演示,如下命令:

CppTextu -i 456 -n test%d -o 789  -w 4096 -h 4096

这样便可以生成多张最大尺寸(为宽4096,高4096)的图片,最大尺寸取值范围为(1~65535)

展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
3 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部