Поделиться через


Renderer.InkSpaceToPixel - метод (IntPtr, array<Point[]%)

Обновлен: Ноябрь 2007

Converts an array of locations in ink space coordinates to be 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 pts As Point() _
)
'Применение
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
)
/** @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[] pts
)
public function InkSpaceToPixel(
    hdc : IntPtr, 
    pts : Point[]
)

Параметры

  • hdc
    Тип: System.IntPtr
    The handle of the containing control or form.

Заметки

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.

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

Renderer Класс

Renderer - члены

InkSpaceToPixel - перегрузка

Microsoft.Ink - пространство имен

Renderer.PixelToInkSpace