Complement()

Region::Complement(const RectangleF&) method

Replaces the region represented by the current object with the portion of the region defined by the specified recangle that does not intersect with this region.

void System::Drawing::Region::Complement(const RectangleF &rect)

Arguments

ParameterTypeDescription
rectconst RectangleF&A rectangle that defines a region to complement

Region::Complement(const Rectangle&) method

Replaces the region represented by the current object with the portion of the region defined by the specified recangle that does not intersect with this region.

void System::Drawing::Region::Complement(const Rectangle &rect)

Arguments

ParameterTypeDescription
rectconst Rectangle&A rectangle that defines a region to complement

Region::Complement(const SharedPtr<Drawing2D::GraphicsPath>&) method

Replaces the region represented by the current object with the portion of the region defined by the specified path that does not intersect with this region.

void System::Drawing::Region::Complement(const SharedPtr<Drawing2D::GraphicsPath> &path)

Arguments

ParameterTypeDescription
pathconst SharedPtr<Drawing2D::GraphicsPath>&A path that defines a region to complement

Region::Complement(const SharedPtr<Region>&) method

Replaces the region represented by the current object with the portion of the specified region that does not intersect with this region.

void System::Drawing::Region::Complement(const SharedPtr<Region> &region)

Arguments

ParameterTypeDescription
regionconst SharedPtr<Region>&A region to complement

See Also