Click or drag to resize

PdfBitmapExtensionFromBitmap Method

Creates an PdfBitmap from the specified image.

Namespace: Patagames.Pdf.Net
Assembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 5.1.3
Syntax
public static PdfBitmap FromBitmap(
	Bitmap image
)

Parameters

image  Bitmap
System.Drawing.Bitmap

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