Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using SixLabors.ImageSharp;
- using SixLabors.ImageSharp.Formats.Tga;
- using SixLabors.ImageSharp.PixelFormats;
- namespace ConsoleApp2
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- var encoder = new TgaEncoder
- {
- BitsPerPixel = TgaBitsPerPixel.Pixel32,
- Compression = TgaCompression.RunLength,
- };
- using (var image = Image.Load<Rgba32>("Github_RLE_legacy.tga"))
- {
- Console.WriteLine(image.Width);
- Console.WriteLine(image.Height);
- // image.Save("Github_RLE_new.tga", encoder);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment