Click or drag to resize

MemoryBitmapsAdd Method

This method creates a new MemoryBitmap object from raw data and information specified by the ImgInfo parameter and adds it to the collection.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void Add(
	ImageInfo ImgInfo,
	Object Bitmap,
	[OptionalAttribute] Object Palette,
	out MemoryBitmap MemoryBitmap
)

Parameters

ImgInfo
Type: Kofax.OmniPageCSDK.IproPlusImageInfo
Bitmap
Type: SystemObject
Palette (Optional)
Type: SystemObject
MemoryBitmap
Type: Kofax.OmniPageCSDK.IproPlusMemoryBitmap
Remarks

The Bitmap parameter is a Byte array in Visual Basic or a variant containing a one dimensional SAFEARRAY of Bytes in C++. The size of the byte array must be equal to the ImgInfo.BytesPerLine value multiplied by the ImgInfo.Height value. Otherwise a trappable error occurs.

The Palette is an optional parameter specifying the palette for an 8-bit color bitmap. If the new bitmap is not an 8-bit color bitmap, the Palette parameter is ignored. The Palette parameter is a 768 element (256 color triplets, in RGB order), one dimensional array of Bytes in Visual Basic, or a VARIANT containing the same size SAFEARRAY of Bytes in C++. If this parameter is an empty array or is unspecified, the 8 bit bitmap will be created as a grayscale bitmap.

See Also