.. _doxcsid-class_p1_1_1_image_sdk_1_1_convert_config_1a1c12b0100d3d47af49f16539bb3c0d3d: 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 .. ref-code-block:: csharp :class: doxyrest-overview-code-block public :ref:`IBitmapImage` ApplyTo(:ref:`RawImage` image, Func 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[]. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - image - The source image to apply the configured decoding to * - allocFunction - An optional memory allocator function .. rubric:: Returns: The new processed image as a bitmap object