Skip to content

Latest commit

 

History

History
104 lines (73 loc) · 2.87 KB

nf-wingdi-dptolp.md

File metadata and controls

104 lines (73 loc) · 2.87 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wingdi.DPtoLP
DPtoLP function (wingdi.h)
The DPtoLP function converts device coordinates into logical coordinates. The conversion depends on the mapping mode of the device context, the settings of the origins and extents for the window and viewport, and the world transformation.
DPtoLP
DPtoLP function [Windows GDI]
_win32_DPtoLP
gdi.dptolp
wingdi/DPtoLP
gdi\dptolp.htm
gdi
0106867c-e8c5-4826-8cba-60c29e1d021a
12/05/2018
DPtoLP, DPtoLP function [Windows GDI], _win32_DPtoLP, gdi.dptolp, wingdi/DPtoLP
wingdi.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Gdi32.lib
Gdi32.dll
Windows
19H1
DPtoLP
wingdi/DPtoLP
c++
APIRef
kbSyntax
DllExport
gdi32.dll
Ext-MS-Win-GDI-Draw-l1-1-1.dll
ext-ms-win-gdi-draw-l1-1-2.dll
Ext-MS-Win-GDI-Draw-L1-1-3.dll
GDI32Full.dll
DPtoLP

DPtoLP function

-description

The DPtoLP function converts device coordinates into logical coordinates. The conversion depends on the mapping mode of the device context, the settings of the origins and extents for the window and viewport, and the world transformation.

-parameters

-param hdc [in]

A handle to the device context.

-param lppt [in, out]

A pointer to an array of POINT structures. The x- and y-coordinates contained in each POINT structure will be transformed.

-param c [in]

The number of points in the array.

-returns

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

-remarks

The DPtoLP function fails if the device coordinates exceed 27 bits, or if the converted logical coordinates exceed 32 bits. In the case of such an overflow, the results for all the points are undefined.

Examples

For an example, see Using Coordinate Spaces and Transformations.

-see-also

Coordinate Space and Transformation Functions

Coordinate Spaces and Transformations Overview

LPtoDP

POINT