Renderer.InkSpaceToPixel Method (IntPtr, array<Point[]%)
Converts an array of locations in ink space coordinates to be in pixel space by using a handle for the conversion.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
<UIPermissionAttribute(SecurityAction.Demand, Window := UIPermissionWindow.SafeTopLevelWindows)> _
<SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode := True)> _
Public Sub InkSpaceToPixel ( _
hdc As IntPtr, _
ByRef pts As Point() _
)
'Usage
Dim instance As Renderer
Dim hdc As IntPtr
Dim pts As Point()
instance.InkSpaceToPixel(hdc, pts)
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode = true)]
public void InkSpaceToPixel(
IntPtr hdc,
ref Point[] pts
)
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
[UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction::Demand, UnmanagedCode = true)]
public:
void InkSpaceToPixel(
IntPtr hdc,
array<Point>^% pts
)
public function InkSpaceToPixel(
hdc : IntPtr,
pts : Point[]
)
Parameters
hdc
Type: System.IntPtrThe handle of the containing control or form.
pts
Type: array<System.Drawing.Point[]%The array of points to convert into pixel locations.
Remarks
The InkSpaceToPixel method applies the object transform of the Renderer object, applies the view transform, and then converts from HIMETRIC to pixel units.
To minimize memory leaks, use the InkSpaceToPixel(Graphics, array<Point[]%) overload of this method. The InkSpaceToPixel(IntPtr, array<Point[]%) overload requires that handles be kept in memory, which tends to result in leaks.
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0