Click or drag to resize

MemoryBitmapPutBitmap Method

This method is used to write raw bitmap data together with information specified by the ImgInfo parameter back into the image object.

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

Parameters

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

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

Palette is an optional parameter used to set the palette of an 8-bit color bitmap. If the new bitmap is not an 8-bit color bitmap, the Palette parameter is ignored. If specified, it has to be a one dimensional, 768 element (256 color triplets, in RGB order) array of bytes in Visual Basic, or a VARIANT containing a same size SAFEARRAY of Bytes in C++. If this parameter is an empty array or is unspecified, the 8 bit bitmap is then treated as a grayscale bitmap.

See Also