What do the different elements in a CvDescripter data type denote?

Howdy! I’m using a Cv Get Text activity that has a “Descriptor” property that another developer filled out. I need to adjust this, but I’m not entirely sure how.

The descriptor is: “Target: Text ‘Top 25%’ (113,106,43,10) Offset: (-12,-151,70,149)”

It’s supposed to denote a rectangle within a UiElement, which it’s doing right now. However, I need to decrease the vertical height of this rectangle by 50%…anyone know how I do that? And what the different numbers mean/denote? (by different numbers, I’m referring to the “(113,106,43,10)” of the descriptor above)

@jonathan.traeger

Those are the rectangle coordinates and length

First teo are x and y and next two are the length and height

Cheers

So would “x” and “y” denote the bottom right, bottom left, top right, top left, or center of the rectangle?

So for example, let’s say it denotes bottom left. (10,20,10,10) would yield a rectangle that starts at (in terms of a cartesian coordinate plane) at the point (10,20) - so 10 to the right, 20 up. Then, from that point, the rectangle’s length (on the x axis) and height (on the y axis) would increase by 10 each.

So, overall, the coordinate for the bottom-left of the rectangle would be (10,20) and the top right (20,30). Is this correct?

@jonathan.traeger

It is bottom left

And yes your understanding is correct

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.