Gets an instance of an Image from a System.Drawing.Image.

Namespace: iTextSharp.text
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public static Image GetInstance(
	Image image,
	Color color
)
Visual Basic
Public Shared Function GetInstance ( _
	image As Image, _
	color As Color _
) As Image
Visual C++
public:
static Image^ GetInstance(
	Image^ image, 
	Color^ color
)

Parameters

image
Type: System.Drawing..::..Image
the System.Drawing.Image to convert
color
Type: iTextSharp.text..::..Color
if different from null the transparency pixels are replaced by this color

Return Value

an object of type ImgRaw

See Also