Gets an instance of an Image in raw mode.

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

Syntax

C#
public static Image GetInstance(
	int width,
	int height,
	int components,
	int bpc,
	byte[] data,
	int[] transparency
)
Visual Basic
Public Shared Function GetInstance ( _
	width As Integer, _
	height As Integer, _
	components As Integer, _
	bpc As Integer, _
	data As Byte(), _
	transparency As Integer() _
) As Image
Visual C++
public:
static Image^ GetInstance(
	int width, 
	int height, 
	int components, 
	int bpc, 
	array<unsigned char>^ data, 
	array<int>^ transparency
)

Parameters

width
Type: System..::..Int32
the width of the image in pixels
height
Type: System..::..Int32
the height of the image in pixels
components
Type: System..::..Int32
1,3 or 4 for GrayScale, RGB and CMYK
bpc
Type: System..::..Int32
bits per component
data
Type: array<System..::..Byte>[]()[][]
the image data
transparency
Type: array<System..::..Int32>[]()[][]
transparency information in the Mask format of the image dictionary

Return Value

an object of type ImgRaw

See Also