#include <mi32/stddefns.h>

Go to the source code of this file.
Enumerations | |
| enum | SCREENUNIT { SCREENUNIT_Inches = 0, SCREENUNIT_Millimeters = 1, SCREENUNIT_mm = SCREENUNIT_Millimeters, SCREENUNIT_Points = 2, SCREENUNIT_Pixels = 3, SCREENUNIT_1OverInches = 4, SCREENUNIT_MetersAtCurrentScale = 5, SCREENUNIT_Arbitrary = 6, SCREENUNIT_Object = 7, SCREENUNIT_COUNT = 8 } |
Functions | |
| double | ConvertScreenUnits (double val, int iunit, int ounit, double MapScale=1.0) |
| double | ConvertScreenUnits (double val, double mmPerPixel, double MapScale, int iunit, int ounit) |
| double | GetScreenPixelSizeMM () |
| double | MwinGetPixelSizeMM (void *hdc) |
Definitions for SCREENUNIT constants and functions
| enum SCREENUNIT |
Screen unit enumeration values.
These values are stored in files and thus must not change.
| double ConvertScreenUnits | ( | double | val, | |
| int | iunit, | |||
| int | ounit, | |||
| double | MapScale = 1.0 | |||
| ) |
Convert SCREENUNIT value using pixel size determined from screen.
| val | Input value | |
| iunit | Input units (SCREENUNIT_...) | |
| ounit | Output units (SCREENUNIT_...) | |
| MapScale | Map scale |
| double ConvertScreenUnits | ( | double | val, | |
| double | mmPerPixel, | |||
| double | MapScale, | |||
| int | iunit, | |||
| int | ounit | |||
| ) |
Convert SCREENUNIT value using given "pixel size".
| val | Input value | |
| mmPerPixel | Millimeters per pixel | |
| MapScale | Map scale | |
| iunit | Input units (SCREENUNIT_...) | |
| ounit | Output units (SCREENUNIT_...) |
| double GetScreenPixelSizeMM | ( | ) |
Get screen pixel size in millimeters.
| double MwinGetPixelSizeMM | ( | void * | hdc | ) |
Get screen pixel size in millimeters using device context (WIN32_NATIVE only).
| hdc | Windows device context, 0 for default |
1.6.1