首先,我们必须要下载一个工具TexturePacker,
它的官网地址是:http://www.codeandweb.com/texturepacker/
下载好以后,安装完成启动一次,选择试用然后找到安装途径
pvr转png .bat代码
@echo off path %path%;"C:\Program Files\CodeAndWeb\TexturePacker\bin" for /f "usebackq tokens=*" %%d in (`dir /s /b *.pvr *.pvr.ccz *.pvr.gz`) do ( TexturePacker.exe "%%d" --sheet "%%~dpnd.png" --data "%%~dpnd.plist" --opt RGBA8888 --allow-free-size --algorithm Basic --no-trim --dither-fs ) pause
自己新建一个文本。命名 1.bat 把代码填上
C:\Program Files\CodeAndWeb\TexturePacker\bin
改成你安装TexturePacker的途径。
png转pvr .bat
@echo off path %path%;"C:\Program Files\CodeAndWeb\TexturePacker\bin" for /f "usebackq tokens=*" %%d in (`dir /s /b *.png`) do ( TexturePacker.exe "%%d" --sheet "%%~dpnd.pvr" --data "%%~dpnd.plist" --opt PVRTC4 --allow-free-size --algorithm Basic --no-trim --dither-fs ) pause
把bat放到你pvr文件夹里面,双击就可以了。
本文由网上采集发布,不代表我们立场,转载联系作者并注明出处:https://www.90175.com/wenku/txtlist_i192v.html