如何创建targa到PNG / JPG转换器,反之亦然。 [英] How do I create targa to PNG/JPG converter and vise a versa.
问题描述
我想创建简单的转换器,它可以在转换时查看targa图像。
我可以在图片框中查看Bitmap / jpeg / png。但是无法查看targa文件所以我也需要它,
当我加载任何图像并点击转换时,我需要它转换为targa并查看它。
这不是唯一的问题,但另一件事是我还需要它来裁剪和调整大小。图片
在我的情况下:1。)如果客户端加载1366 * 728大小或其他大小的img文件。它将调整大小为800 * 600 2.)它将按部分方式裁剪:256 * 256作为a部分,256 * 256作为b部分,...等等.3。)这个所有裁剪img转换为targa文件和保存在特定位置。
我尝试过:
我已经尝试搜索谷歌和代码项目,
我有一篇文章,但我无法理解,那篇文章只查看targa文件。
I want to create simple converter, which can view targa image too when it converted.
I can view Bitmap/jpeg/png in the picturebox. but can't view targa file so I need it too,
When I load any image and click on convert, I need it to convert to the targa and view it.
This is not the only problem, But the another thing is I also need it to crop and resize. image
In my case: 1.) if client load 1366*728 size or other size img file. it will resize it to 800*600 2.) it will crop section wise: 256*256 as section a, 256*256 as section b, ... etc. 3.) And this all crop img convert to the targa files and save at specific location.
What I have tried:
I already try to search on google and code project,
I got an article but I am unable to understand it, That article only view targa file.
推荐答案
如果你的意思是 .NET Targa Image Reader [ ^ ]文章中有很多细节,包括如何转换的解释t到不同的格式。它还包含指向Targa规范的链接,因此您可以自己解决如何阅读和处理它们。
If you mean .NET Targa Image Reader[^] there is plenty of detail in the article, including an explanation of how to convert to different formats. It also contains a link to the Targa specification so you can work out how to read and process them them yourself.
这篇关于如何创建targa到PNG / JPG转换器,反之亦然。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!