Hello,
In our case, it isn't. Our goal is to get the exact screenshot given a viewpoint. In our example we set the viewpoint to
[XMin=643337.447936 YMin=262073.813165 XMax=645931.670118 YMax=263557.442529 Wkid=27700] on MapView dimension set to [761, 435]
ArcGIS runtime returns this screenshot with viewpoint at
[XMin=643275.904459005, YMin=262073.813165, XMax=645993.213594995, YMax=263557.442529, Wkid=27700]
For reference, here's what it looks like in-app:
The Y component is equal to what we supplied meaning we should expect the Y to be as exact to what we're after.
However, upon inspection, the bottom pixel is at 266008 which is off by 64 world units.
Here's where we expect the bottom border of our screenshot should be:
I tried hard-coding half of the height of the attribution text (measured from paint) and cropping that amount relative to the screenshot and it perfectly brought out the exact screenshot. This perfectly works in my machine but It will probably mess up in another machine unless I can get exactly how tall the attribution text is.
Note that the ViewInsets right now is set to 0,0,0,0