Region::FromHrgn Method (IntPtr)

 

Initializes a new Region from a handle to the specified existing GDI region.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
static Region^ FromHrgn(
	IntPtr hrgn
)

Parameters

hrgn
Type: System::IntPtr

A handle to an existing Region.

Return Value

Type: System.Drawing::Region^

The new Region.

This method creates a new Region with an interior defined by the existing Region referred to by the handle in the hrgn parameter.

SecurityPermission

for accessing unmanaged code. Related enumeration SecurityPermissionFlag.

.NET Framework
Available since 1.1
Return to top
Show: