public void SharpSharpBufferBuffer() { ImagePipeline .FromBuffer(buffer) .Resize(Width, Height) .ToBuffer(out var data); }
public void SharpSharp() { using var output = TestFiles.OutputJpg(); ImagePipeline .FromBuffer(buffer) .Resize(Width, Height) .ToFile(output.Path); }
public static void read_buffer_write_stream() { var buffer = File.ReadAllBytes(TestFiles.InputJpg); using var outputFile = TestFiles.OutputJpg(); using var outputStream = new FileStream(outputFile.Path, FileMode.Open, FileAccess.Write); ImagePipeline .FromBuffer(buffer) .TestActions() .ToStream(outputStream, VerifyImageInfo); }