Graphics.GetContextInfo 方法

定义

重载

GetContextInfo()
已过时.

获取累积的图形上下文。

GetContextInfo(PointF)

获取累积偏移量。

GetContextInfo(PointF, Region)

获取累积偏移量和剪辑区域。

GetContextInfo()

Source:
Graphics.cs
Source:
Graphics.cs
Source:
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)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
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)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
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 如果剪辑区域是无限的,则为 。 该参数未经初始化即被处理。

属性

适用于