.. _doxcsid-class_p1_1_1_image_sdk_1_1_raw_image_1a491a965615cf2ab74036593f58c37cd0: RawImage.Convert Method +++++++++++++++++++++++ Definition """""""""" *Namespace:* ``P1.ImageSdk`` Get a processing object, that handles RAW convertion of the image into an RGB bitmap .. ref-code-block:: csharp :class: doxyrest-overview-code-block public :ref:`BitmapImage` Convert(:ref:`ConvertConfig` config, Func<:ref:`UInt32`, byte[]> allocFunction = null); 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[]. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - config - The convert pipeline configuration to use when converting the image * - allocFunction - An optional memory allocator function .. rubric:: Returns: Options object for getting RGB bitmap images and exposure mask .. rubric:: See also: :ref:`Decode `