
API and Coordinate system
Quote:
>Help! Does ANYONE know how to change the scale or
>coordinate system in a picture box using the API
>functions? I want to change the default from
>pixels to user defined - HELP!
Be aware of the fact that VB's scaling is NOT the API scaling. VB uses
floating point, API uses integers.
To work properly together, Window's scalemode must be set to pixels.
Which it is by default.
API functions (if you're stubborn): ScaleViewportExt,
ScaleViewportExtEx, ScaleWindowExt, ScaleWindowExtEx.
HTH,
Bart.