コード例 #1
0
 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 _);
 }
コード例 #2
0
 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);
 }