Renderer.InkSpaceToPixel Method (IntPtr, Point%)
Converts a location in ink space coordinates to be a location 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 pt As Point _
)
'Usage
Dim instance As Renderer
Dim hdc As IntPtr
Dim pt As Point
instance.InkSpaceToPixel(hdc, pt)
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode = true)]
public void InkSpaceToPixel(
IntPtr hdc,
ref Point pt
)
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
[UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::SafeTopLevelWindows)]
[SecurityPermissionAttribute(SecurityAction::Demand, UnmanagedCode = true)]
public:
void InkSpaceToPixel(
IntPtr hdc,
Point% pt
)
public function InkSpaceToPixel(
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 a pixel location.
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, Point%) overload of this method. The InkSpaceToPixel(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