コード例 #1
0
 /// <summary> Save image to stream in BMP-format.</summary>
 /// <param name="stream"></param>
 /// <param name="format"></param>
 /// <param name="saveResolution">Save original/user-defined resolution</param>
 public void SaveBmp(Stream stream, ImageFormat format, bool saveResolution)
 {
     ImageOutput.SaveStream(this, stream, format, saveResolution);
 }
コード例 #2
0
 /// <summary>Save image to stream in PNG-format</summary>
 /// <param name="stream"></param>
 /// <param name="saveResolution">Save original/user-defined resolution</param>
 public void SavePng(Stream stream, bool saveResolution)
 {
     ImageOutput.SaveStream(this, stream, ImageFormat.Png, saveResolution);
 }
コード例 #3
0
 /// <summary>Save image to stream in JPG-format</summary>
 /// <param name="stream">Stream to save the image to</param>
 /// <param name="quality">Compression quality setting (0-100)</param>
 /// <param name="saveResolution">Save original/user-defined resolution</param>
 /// <example>
 ///     <code title="Example" description="" lang="CS">
 /// // Save image to stream in jpg format with quality setting 90
 /// MemoryStream memoryStream = new MemoryStream();
 /// image.SaveJpg(memoryStream, 90, true);</code>
 /// </example>
 public void SaveJpg(Stream stream, long quality, bool saveResolution)
 {
     ImageOutput.SaveStream(this, stream, quality, "image/jpeg", saveResolution);
 }
コード例 #4
0
 public void SavePng(Stream stream, long quality)
 {
     ImageOutput.SaveStream(this, stream, quality, "image/png", false);
 }
コード例 #5
0
ファイル: KalikoImage.cs プロジェクト: rensy/NetImageLibrary
 public void SavePng(Stream stream, long quality)
 {
     ImageOutput.SaveStream(Image, stream, quality, "image/png");
 }