Suggesting Point Snapshot.GetSampleCoordinates(Snapshot sample) method.

Jul 13, 2009 at 7:34 AM
Edited Jul 13, 2009 at 7:36 AM

Hello,

In addition to  Snapshot.Contains() method from Additional features in Visual Verification

I'd like to ask about

Point Snapshot.GetSampleCoordinates(Snapshot sample)

method, i.e.

1. There is an image of element, say 256*128;

2. There is a sample image, say 16*16;

3. Calling .GetSampleCoordinates(sample) you get [1-st row, 1-st column] coordinates of the sub-image inside the image;

4. If there is no sub-image inside then Point(-1,-1) or something of the sort is returned.

That might be helpful for dealing with parts of custom controls, see Custom control, not all inside elements accessible.  for example.

 

Jul 29, 2009 at 2:31 PM

Thanks for this suggestion too -- I think it makes total sense to extend the API with this functionality.
We will add it to the backlog for v0.4.
Ivo