Aspose::Pdf::Rectangle::FromRect method

Rectangle::FromRect(System::Drawing::Rectangle) method

Initializes new rectangle from given instance of System.Drawing.Rectangle.

static System::SharedPtr<Rectangle> Aspose::Pdf::Rectangle::FromRect(System::Drawing::Rectangle src)
ParameterTypeDescription
srcSystem::Drawing::RectangleSource rectangle which position and size will be set to new rectangle.

ReturnValue

New rectangle.

See Also

Rectangle::FromRect(System::Drawing::RectangleF) method

Initializes new rectangle from given instance of System.Drawing.Rectangle.

static System::SharedPtr<Rectangle> Aspose::Pdf::Rectangle::FromRect(System::Drawing::RectangleF src)
ParameterTypeDescription
srcSystem::Drawing::RectangleFSource rectangle which position and size will be set to new rectangle.

ReturnValue

New rectangle.

See Also