0

I'm new in .net development, so, may be my question is simple. I need to compress BMP to TGA and decompress TGA to BMP using C#. How can I implement that?

Paul T.
  • 4,938
  • 7
  • 45
  • 93

1 Answers1

0

There is not support for TGA in .NET. You could use a third-party library like Magick.NET (http://magick.codeplex.com)

using (MagickImage image = new MagickImage("input.tga"))
{
  image.Write("output.bmp");

  image.Read("output.bmp");
  image.Write("output.tga");
}
dlemstra
  • 7,813
  • 2
  • 27
  • 43