20 lines
573 B
Markdown
20 lines
573 B
Markdown
# tgatoppm
|
||
|
||
> 将 TrueVision Targa 文件转换为 Netpbm 图像。
|
||
> 更多信息:<https://netpbm.sourceforge.net/doc/tgatoppm.html>。
|
||
|
||
- 将 TrueVision Targa 文件转换为 PPM 图像:
|
||
|
||
`tgatoppm {{path/to/file.tga}} > {{path/to/output.ppm}}`
|
||
|
||
- 将 TGA 头部的信息转储到 `stdout`:
|
||
|
||
`tgatoppm --headerdump {{path/to/file.tga}} > {{path/to/output.ppm}}`
|
||
|
||
- 将输入图像的透明度通道值写入指定文件:
|
||
|
||
`tgatoppm --alphaout {{path/to/transparency_file.pgm}} {{path/to/file.tga}} > {{path/to/output.ppm}}`
|
||
|
||
- 显示版本:
|
||
|
||
`tgatoppm -version` |