Renderer.InkSpaceToPixel Method

Renderer.InkSpaceToPixel Method

Converts a location in ink space coordinates to be a location in pixel space by using a handle for the conversion.

Definition

Visual Basic .NET Public Sub InkSpaceToPixel( _
ByVal hdc As IntPtr, _
ByRef pt As Point _
)
C# public void InkSpaceToPixel(
IntPtr hdc,
ref Point pt
);
Managed C++ public: void InkSpaceToPixel(
IntPtr *hdc,
Point **pt
);

Parameters

hdc System.IntPtr. The handle of the containing control or form.
pt 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.

Important Security InformationSecurity Alert: If using under partial trust, this method requires SecurityPermissionFlag.UnmanagedCode Leave Site permission in addition to the permissions required by Renderer. See Security And Trust for more information.

Examples

See Also