public static void read_stream_write_buffer() { using var inputStream = new FileStream(TestFiles.InputJpg, FileMode.Open, FileAccess.Read); ImagePipeline .FromStream(inputStream) .TestActions() .ToBuffer(VerifyImageInfo, out _); }
public static void read_stream_write_file() { using var inputStream = new FileStream(TestFiles.InputJpg, FileMode.Open, FileAccess.Read); using var outputFile = TestFiles.OutputJpg(); ImagePipeline .FromStream(inputStream) .TestActions() .ToFile(outputFile.Path, VerifyImageInfo); }