Graphics.GetContextInfo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetContextInfo() |
已淘汰.
取得累計圖形內容。 |
GetContextInfo(PointF) |
取得累計位移。 |
GetContextInfo(PointF, Region) |
取得累計位移和裁剪區域。 |
GetContextInfo()
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
警告
Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.
取得累計圖形內容。
public:
System::Object ^ GetContextInfo();
public object GetContextInfo ();
[System.Obsolete("Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.", DiagnosticId="SYSLIB0016", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public object GetContextInfo ();
member this.GetContextInfo : unit -> obj
[<System.Obsolete("Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.", DiagnosticId="SYSLIB0016", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.GetContextInfo : unit -> obj
Public Function GetContextInfo () As Object
傳回
代表累計圖形內容的 Object。
- 屬性
備註
傳回值是物件陣列,其中第一個專案包含累計剪輯區域,而第二個元素則包含累計轉譯/轉換矩陣。
適用於
GetContextInfo(PointF)
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
取得累計位移。
public:
void GetContextInfo([Runtime::InteropServices::Out] System::Drawing::PointF % offset);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public void GetContextInfo (out System.Drawing.PointF offset);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.GetContextInfo : PointF -> unit
Public Sub GetContextInfo (ByRef offset As PointF)
參數
- offset
- PointF
當這個方法傳回時,會包含累計位移。 這個參數會被視為未初始化。
- 屬性
適用於
GetContextInfo(PointF, Region)
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
- 來源:
- Graphics.cs
取得累計位移和裁剪區域。
public:
void GetContextInfo([Runtime::InteropServices::Out] System::Drawing::PointF % offset, [Runtime::InteropServices::Out] System::Drawing::Region ^ % clip);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public void GetContextInfo (out System.Drawing.PointF offset, out System.Drawing.Region? clip);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.GetContextInfo : PointF * Region -> unit
Public Sub GetContextInfo (ByRef offset As PointF, ByRef clip As Region)
參數
- offset
- PointF
當這個方法傳回時,會包含累計位移。 這個參數會被視為未初始化。
- clip
- Region
當這個方法傳回時,會包含累計剪輯區域,如果 null
剪輯區域是無限的,則為 。 這個參數會被視為未初始化。
- 屬性
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應