Calculate sum of pixels in the specified rectangle without checking it's coordinates.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public uint GetRectangleSumUnsafe(
	int x1,
	int y1,
	int x2,
	int y2
)

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.

See Also