Regarding the UiPath.Core.Activities.SetClippingRegion:

I’ve been having a difficult time understanding exactly how the Set Clipping Region **[Input.Direction]** calculations are performed.

First question: is there a way to *shade-in* or *highlight* a Clipping Region on-screen so you can see a selected region for testing purposes?

I know I can use *Recording>Screen Scraping>Scrape Relative* to automatically populate the Find Image (*Activities.WaitImageAppear*), Translate Clipping Region (*Activities.SetClippingRegion*), GetOCRText, and Reset Clipping Region steps. But from what I’ve seen this always sets the **[Input.Direction]** to *“Translate”*. Yet there are also options for *“Left”*, *“Top”*, *“Right”*, *“Bottom”* and *“Rectangle”*?

I plotted a quick example image and I’m hoping someone can help identify how to fill in the missing coordinates for these other types of **[Input.Directions]** so this Rookie can better understand!

The attached image represents an area of 20 x 20 pixels. Please correct my logic if anything that follows is not accurate: coordinates should be plotted relative to the **greenDot** in the top-left; i.e. the starting point (x, y) = (0, 0) or (left, top, right, bottom) = (0, 0, 0, 0).

The **blueRect** consists of all positive integers (LEFT = 1 *from the left*, TOP = 1 *from the top*, RIGHT = 19 *from the left*, BOTTOM = 18 *from the top*) … (1, 1, 19, 18). Likewise: **wholeScreen** would be written as (0, 0, 20 20).

My goal is to capture the bottom right corner point of the **blueRect (x, y) = (19, 18)** which I believe could also be written as a rectangle, example: **redPt = (19, 18, 19, 18)**. This would become my anchor point from which I could set relative coordinates for new rectangles, such as: **yellowRect**.

To help illustrate I have 2 columns: first is “**Transform from prplRect**” and second is “**Transform from redPt**” — with the intent of creating the **yellowRect** using *Activities.SetClippingRegion*.

a) Are my numbers correct for the “*Translate*” option from both the **redPt** (-5, -3, -2, -1) and the **prplRect** (-4, -2, -2, -1)? I believe all would be negative integers as I am going backwards on both the x and y axis in all cases.

b) How would this differ if I were to use the alternate options of *“Rectangle”*, *“Left”*, *“Top”*, *“Right”*, and *“Bottom”* for the **[Input.Direction]**?

The closest topic I could find to this was answered here:

But I posted questions to it because I was confused on the solution which uses

**[Input.Direction]**=”

*Left*”.

Any feedback is greatly appreciated!