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