Region.GetHrgn(Graphics) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的圖形情境中回傳 Windows 的 handle 來回應此。Region
public:
IntPtr GetHrgn(System::Drawing::Graphics ^ g);
public IntPtr GetHrgn(System.Drawing.Graphics g);
member this.GetHrgn : System.Drawing.Graphics -> nativeint
Public Function GetHrgn (g As Graphics) As IntPtr
參數
傳回
IntPtr
nativeint
一個Windows 這個 Region。
例外狀況
g 是 null。
備註
你負責呼叫 ReleaseHrgn 方法來釋放 GDI 區域物件所使用的記憶體。