16 lines
460 B
C#
16 lines
460 B
C#
using PhotoThumbnail;
|
|
using System.Drawing.Imaging;
|
|
using System.IO;
|
|
|
|
namespace TestConsoleApp
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var bitmap = TgaDecoder.FromStream(File.OpenRead(@"C:\Program Files (x86)\Steam\steamapps\common\wallpaper_engine\assets\presets\fern\materials\presets\fern1.tga"));
|
|
bitmap.Save(@"C:\Users\tsanie\Downloads\test.png", ImageFormat.Png);
|
|
}
|
|
}
|
|
}
|