Click here to Skip to main content
15,889,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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.
Posted
Updated 23-Jul-16 4:18am

1 solution

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.
 
Share this answer
 
Comments
Modi Deep 24-Jul-16 9:32am    
I will read it carefully and check whether it will help me out or not.
I hope it will help me, this thread is too big so need time to learn it.

Although I take a look on it before, But I can't find the dll file which is mentioned. (I download both zip files, but I can't get it)

There in article: "TargaImage is very easy to use. After downloading the code, just copy the TargaImage.dll"
Richard MacCutchan 24-Jul-16 10:30am    
The download contains all the source code needed to build the DLL and the sample project.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900