FileConversionHelper.ToImage Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ToImage(FileInfo, FileInfo)

Converts the contents of the input file to a System.Drawing.Bitmap image and writes it to the output file. Valid output formats are .gif, .jpg and .png. If the file could not be converted to a System.Drawing.Bitmap image the output file will not be created.

public static void ToImage(this FileInfo input, FileInfo output)

Parameters

input
System.IO.FileInfo
output
System.IO.FileInfo