public GetRectangleSum ( int x, int y, int radius ) : uint | ||
x | int | X coordinate of central point of the rectangle. |
y | int | Y coordinate of central point of the rectangle. |
radius | int | Radius of the rectangle. |
Результат | uint |
The method calculates sum of pixels in square rectangle with odd width and height. In the case if it is required to calculate sum of 3x3 rectangle, then it is required to specify its center and radius equal to 1.
public GetRectangleSum ( int x, int y, int radius ) : uint | ||
x | int | X coordinate of central point of the rectangle. |
y | int | Y coordinate of central point of the rectangle. |
radius | int | Radius of the rectangle. |
Результат | uint |