Renderer.InkSpaceToPixel - метод (IntPtr, Point%)
Обновлен: Ноябрь 2007
Converts a location in ink space coordinates to be a location in pixel space by using a handle for the conversion.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
<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 _
)
'Применение
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
)
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
/** @attribute UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.SafeTopLevelWindows) */
/** @attribute SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode = true) */
public void InkSpaceToPixel(
IntPtr hdc,
/** @ref */Point pt
)
public function InkSpaceToPixel(
hdc : IntPtr,
pt : Point
)
Параметры
- hdc
Тип: System.IntPtr
The handle of the containing control or form.
- pt
Тип: System.Drawing.Point%
The point to convert into a pixel location.
Заметки
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.
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0