﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1446	_Screencapture_Capture UDF height and width is 1 pixel off	djbarnes@…	Jon	"Screencapture_capture will return a square that is 1 pixel too small both in width and in height.

Imagine a grid of pixels 3x3. You want to capture pixel 1,1 - 3,3.
so you run the command:
_ScreenCapture_Capture (""example.png"",1,1,3,3)
however, in _ScreenCapture_Capture the following code exists:

	Local $iW = $iRight - $iLeft
	Local $iH = $iBottom - $iTop

so $iW = 3-1 = 2
   $iH = 3-1 = 2
returning an image 2x2, which isn't what you want. The rectangle is inclusive of the last pixels.

recommended fix:
	Local $iW = $iRight - $iLeft + 1
	Local $iH = $iBottom - $iTop + 1

Although this bug is minor, If you are doing pixelchecksum and using Screencapture_capture to test your code this can cause hours of headaches!"	Bug	closed	3.3.5.4	AutoIt	3.3.4.0	None	Fixed	screencapture	
