Renderer.PixelToInkSpace Method (IntPtr, array<Point[]%)
Converts an array of locations in pixel space coordinates to be an array of locations in ink space coordinates 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 PixelToInkSpace ( _
hdc As IntPtr, _
ByRef pts As Point() _
)
'Usage
Dim instance As Renderer
Dim hdc As IntPtr
Dim pts As Point()
instance.PixelToInkSpace(hdc, pts)
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode = true)]
public void PixelToInkSpace(
IntPtr hdc,
ref Point[] pts
)
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
[UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction::Demand, UnmanagedCode = true)]
public:
void PixelToInkSpace(
IntPtr hdc,
array<Point>^% pts
)
public function PixelToInkSpace(
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 ink space locations.
Remarks
The PixelToInkSpace method converts from pixel to ink space—where one HIMETRIC unit = .01mm, applies the inverse of the view transform, and then applies the object transform.
To minimize memory leaks, use the PixelToInkSpace(Graphics, array<Point[]%) overload of this method. The PixelToInkSpace(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