/// <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); }
/// <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); }
/// <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); }
public void SavePng(Stream stream, long quality) { ImageOutput.SaveStream(this, stream, quality, "image/png", false); }
public void SavePng(Stream stream, long quality) { ImageOutput.SaveStream(Image, stream, quality, "image/png"); }