.. _doxcsid-class_p1_1_1_image_sdk_1_1_convert_config_1a3a8551f41e6cc82e45b542b81d471a77: ConvertConfig.SetCrop Method ++++++++++++++++++++++++++++ Definition """""""""" *Namespace:* ``P1.ImageSdk`` Configure for cropping the raw-image .. ref-code-block:: csharp :class: doxyrest-overview-code-block public :ref:`ConvertConfig` SetCrop(int x, int y, int width, int height); Offsets are with respects to the upper left corner. Positive Y direction is downwards. The resulting crop might differ slightly from your defined parameters. This is the defined behavior of our resampling algorithm. Always use the image width/height from resulting :ref:`BitmapImage `. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - x - X pixel offset in source image * - y - Y pixel offset in source image * - width - Pixel width in source image * - height - Pixel height in source image .. rubric:: Returns: This object itself (this), to allow chaining