description | title | ms.date | f1_keywords | ms.assetid | ||
---|---|---|---|---|---|---|
Learn more about: Pixel/HIMETRIC Conversion Global Functions |
Pixel-HIMETRIC Conversion Global Functions |
11/04/2016 |
|
ecb1b1b2-7e9d-4fbc-a855-16252d2d794c |
These functions provide support for converting to and from pixel and HIMETRIC units.
Important
The functions listed in the following table cannot be used in applications that execute in the Windows Runtime.
Name | Description |
---|---|
AtlHiMetricToPixel | Converts HIMETRIC units (each unit is 0.01 millimeter) to pixels. |
AtlPixelToHiMetric | Converts pixels to HIMETRIC units (each unit is 0.01 millimeter). |
Converts an object's size in HIMETRIC units (each unit is 0.01 millimeter) to a size in pixels on the screen device.
extern void AtlHiMetricToPixel(
const SIZEL* lpSizeInHiMetric,
LPSIZEL lpSizeInPix);
lpSizeInHiMetric
[in] Pointer to the size of the object in HIMETRIC units.
lpSizeInPix
[out] Pointer to where the object's size in pixels is to be returned.
[!code-cppNVC_ATL_COM#49]
Header: atlwin.h
Converts an object's size in pixels on the screen device to a size in HIMETRIC units (each unit is 0.01 millimeter).
extern void AtlPixelToHiMetric(
const SIZEL* lpSizeInPix,
LPSIZEL lpSizeInHiMetric);
lpSizeInPix
[in] Pointer to the object's size in pixels.
lpSizeInHiMetric
[out] Pointer to where the object's size in HIMETRIC units is to be returned.
[!code-cppNVC_ATL_COM#51]
Header: atlwin.h