Method RefreshRectsUnion
RefreshRectsUnion(IEnumerable<RectI>, bool)
Calculates bounds of the specified rectangles collection and repaints combined rectangle. Coordinates are in pixels.
public virtual void RefreshRectsUnion(IEnumerable<RectI> rects, bool eraseBackground = true)
Parameters
rects
IEnumerable<RectI>Array of rectangles with coordinates specified in pixels.
eraseBackground
boolSpecifies whether to erase background.