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

The file that should be converted to an image.

output
System.IO.FileInfo

The output file where the image should be written.