Invalid Rectangle
Either no rectangle was drawn, or the specified rectangle coordinates were invalid or out of range for the displayed image.
-
Ensure that you are in the image selection mode and then drag the image within range or use the DrawSelectionRectangle method to draw the rectangle. All X coordinates must be between 0 and the width of the image. All Y coordinates must be between 0 and the height of the image.