public static Rectangle ZoomArea(Point startDragLocation, Point endDragLocation, Size originalSize, Size targetSize, Size border)
{
var screenArea = GetRectangle(startDragLocation, endDragLocation);
screenArea.X -= border.Width;
screenArea.Y -= border.Height;
var factor = 1m / ProportionalScaleRatio(originalSize.Width, originalSize.Height, targetSize.Width, targetSize.Height);
if (screenArea.Width > 0 && screenArea.Height > 0)
{
return Multiply(screenArea, factor);
}
return Rectangle.Empty;
}