This method converts vertical coordinate values in a Form or PictureBox control from one ScaleMode setting to another.
object.ScaleY(value, fromscale, toscale)
Value of the Y coordinate in the new coordinate system.
The ScaleX and ScaleY methods take a value, with its unit of measure specified by fromscale, and convert it to the corresponding value for the unit of measure specified by toscale.
The following table describes the settings for fromscale and toscale.
Constant |
Value |
Description |
vbUser | 0 | User-defined; indicates that the width or height of object is set to a custom value |
VbTwips | 1 | Twip (1440 twips per logical inch; 567 twips per logical centimeter) |
VbPoints | 2 | Point (72 points per logical inch) |
VbPixels | 3 | Pixel (smallest unit of monitor or printer resolution). |
VbCharacters | 4 | Character (horizontal = 120 twips per unit; vertical = 240 twips per unit) |
VbInches | 5 | Inch |
VbMillimeters | 6 | Millimeter |
VbCentimeters | 7 | Centimeter |