共用方式為


Renderer.PixelToInkSpace Method

Renderer.PixelToInkSpace Method

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

Definition

Visual Basic .NET Public Sub PixelToInkSpace( _
ByVal hdc As IntPtr, _
ByRef pt As Point _
)
C# public void PixelToInkSpace(
IntPtr hdc,
ref Point pt
);
Managed C++ public: void PixelToInkSpace(
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 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.

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