RawImage.Convert Method
Definition
Namespace: P1.ImageSdk
Get a processing object, that handles RAW convertion of the image into an RGB bitmap
public IBitmapImage Convert( ConvertConfig config, Func<UInt32, byte[]> allocFunction = null, bool useNativeMemory = false );
Use this method if you wish to obtain an RGB (RAW converted) bitmap image from the IIQ file. You can choose to add any calibration and / or image filters on the output RGB bitmap.
By default the memory for the converted image is allocated by using C# new operator. However, you can provide your own allocator function, to allow re-using existing buffers. The memory allocator callback function takes the requested buffer size in bytes, and must return a byte array, byte[].
Parameters:
config |
The convert pipeline configuration to use when converting the image |
allocFunction |
An optional memory allocator function |
useNativeMemory |
The returned bitmap resides in unmanaged memory |
Returns:
Options object for getting RGB bitmap images and exposure mask
See also: