GetBounds()

GraphicsPath::GetBounds(const MatrixPtr&, const SharedPtr<Pen>&) const method

Returns a RectangleF object that represents a rectangle that bounds the path represented by the current object when it is transformed with the specified matrix.

RectangleF System::Drawing::Drawing2D::GraphicsPath::GetBounds(const MatrixPtr &matrix=nullptr, const SharedPtr<Pen> &pen=nullptr) const

Arguments

ParameterTypeDescription
matrixconst MatrixPtr&The transform matrix
penconst SharedPtr<Pen>&A Pen to calculate the bounding rectangle.

See Also