コード例 #1
0
 /// <summary>Generic method that will save the image in the specified ImageFormat.</summary>
 /// <param name="fileName"></param>
 /// <param name="format">Image format to save the file in, for example ImageFormat.Tiff</param>
 /// <param name="saveResolution">Save original/user-defined resolution</param>
 /// <example>
 ///     <code title="Example" description="" lang="CS">
 /// // Save image to file system in the selected format
 /// image.SaveImage(@"C:\MyImages\Output.tif", ImageFormat.Tiff, true);</code>
 /// </example>
 public void SaveImage(string fileName, ImageFormat format, bool saveResolution)
 {
     ImageOutput.SaveFile(this, fileName, format, saveResolution);
 }
コード例 #2
0
 /// <summary>Save image to file in BMP-format.</summary>
 /// <param name="fileName"></param>
 /// <param name="saveResolution">Save original/user-defined resolution</param>
 public void SaveBmp(string fileName, bool saveResolution)
 {
     ImageOutput.SaveFile(this, fileName, ImageFormat.Bmp, saveResolution);
 }
コード例 #3
0
 /// <summary>Save image to file in JPG-format.</summary>
 /// <param name="fileName">Name of the file</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 file system in jpg format with quality setting 90
 /// image.SaveJpg(@"C:\MyImages\Output.jpg", 90, true);</code>
 /// </example>
 public void SaveJpg(string fileName, long quality, bool saveResolution)
 {
     ImageOutput.SaveFile(this, fileName, quality, "image/jpeg", saveResolution);
 }
コード例 #4
0
 public void SavePng(string fileName, long quality)
 {
     ImageOutput.SaveFile(this, fileName, quality, "image/png", false);
 }
コード例 #5
0
ファイル: KalikoImage.cs プロジェクト: rensy/NetImageLibrary
 public void SavePng(string fileName, long quality)
 {
     ImageOutput.SaveFile(Image, fileName, quality, "image/png");
 }