MemoryBitmap.PutBitmap Method |
Namespace: Kofax.OmniPageCSDK.IproPlus
public void PutBitmap( ImageInfo ImgInfo, Object Bitmap, [OptionalAttribute] Object Palette )
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.