Renderer.PixelToInkSpace Method (IntPtr, Point%)
Converts a location in pixel space coordinates to be a location in ink space coordinates by using a handle for the conversion.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
<UIPermissionAttribute(SecurityAction.Demand, Window := UIPermissionWindow.SafeTopLevelWindows)> _
<SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode := True)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Sub PixelToInkSpace ( _
hdc As IntPtr, _
ByRef pt As Point _
)
'Usage
Dim instance As Renderer
Dim hdc As IntPtr
Dim pt As Point
instance.PixelToInkSpace(hdc, pt)
[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public void PixelToInkSpace(
IntPtr hdc,
ref Point pt
)
[UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction::Demand, UnmanagedCode = true)]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public:
void PixelToInkSpace(
IntPtr hdc,
Point% pt
)
public function PixelToInkSpace(
hdc : IntPtr,
pt : Point
)
Parameters
hdc
Type: System.IntPtrThe handle of the containing control or form.
pt
Type: System.Drawing.Point%The point to convert into an ink space location.
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, Point%) overload of this method. The PixelToInkSpace(IntPtr, 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