Calculate sum of pixels in the specified rectangle without checking it's coordinates.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
Parameters
- x1
- Type: System..::.Int32
X coordinate of left-top rectangle's corner.
- y1
- Type: System..::.Int32
Y coordinate of left-top rectangle's corner.
- x2
- Type: System..::.Int32
X coordinate of right-bottom rectangle's corner.
- y2
- Type: System..::.Int32
Y coordinate of right-bottom rectangle's corner.
Return Value
Returns sum of pixels in the specified rectangle.
Remarks
Both specified points are included into the calculation rectangle.