ConvertConfig.ApplyTo Method
Definition
Namespace: P1.ImageSdk
Trigger processing of the applied options on the raw-image and return a new image as an RGB bitmap
public IBitmapImage ApplyTo(RawImage image, Func<UInt32, byte[]> allocFunction = null);
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:
image |
The source image to apply the configured decoding to |
allocFunction |
An optional memory allocator function |
Returns:
The new processed image as a bitmap object