예제 #1
0
 /// <summary>
 /// Given a filename and a ImageInfo, produces a PngWriter object, ready for writing.</summary>
 /// <param name="fileName">Path of file</param>
 /// <param name="imgInfo">ImageInfo object</param>
 /// <param name="allowOverwrite">Flag: if false and file exists, a PngjOutputException is thrown</param>
 /// <returns>A PngWriter object, ready for writing</returns>
 public static PngWriter CreatePngWriter(string fileName, ImageInfo imgInfo, bool allowOverwrite)
 {
     return(new PngWriter(OpenFileForWriting(fileName, allowOverwrite), imgInfo, fileName));
 }