Click or drag to resize

PdfBitmapExtension.FromFile Method

Creates an PdfBitmap from the specified file.

Namespace: Patagames.Pdf.Net
Assembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 4.94.2704
Syntax
public static PdfBitmap FromFile(
	string path
)

Parameters

path  String
A string that contains the name of the file from which to create the PdfBitmap.

Return Value

PdfBitmap
The PdfBitmap this method creates.
Exceptions
ExceptionCondition
OutOfMemoryExceptionThe file does not have a valid image format. -or- GDI+ does not support the pixel format of the file.
FileNotFoundExceptionThe specified file does not exist.
ArgumentExceptionFilename is a System.Uri.
UnsupportedImageFormatExceptionCan't convert System.Drawing.Bitmap to PdfBitmap
See Also