I am trying to capture a screenshot using CopyFromScreen. However method signature is a bit confusing for me.
It looks like this:
public void CopyFromScreen(
Point upperLeftSource,
Point upperLeftDestination,
Size blockRegionSize
)
Why there are 3 parameters instead of 2? And why there are both upperLeftCorner. In my understanding you can describe a square area on a surface using two points (upper left corner and bottom right corner). This could describe area of any size and in any position.
So the question is: how do I use this method to capture an area denoted: (X0,Y0) (X1,Y1)?