SRGraphComponent::CalcBounds

CRect SRGraphComponent::CalcBounds(CPoint * pPoints, int nPointCount)

Calculate the bounding rectangle of a given polygon.

Defined in: SRGComp.cpp

Return Value

CRect containing the bounding rectangle.

Parameters

pPoints

CPoint *pPoints is a pointer to the list of points that describes the polygon.

nPointCount

int nPointCount contains the number of points in the polygon.