Export (0) Print
Expand All

Support.FromPixelsUserWidth Method

Converts a pixel measurement to a Visual Basic 6.0 ScaleWidth measurement.

Namespace: Microsoft.VisualBasic.Compatibility.VB6
Assembly: Microsoft.VisualBasic.Compatibility (in microsoft.visualbasic.compatibility.dll)

public static double FromPixelsUserWidth (
	double Width,
	double ScaleWidth,
	int OriginalWidthInPixels
)
public static double FromPixelsUserWidth (
	double Width, 
	double ScaleWidth, 
	int OriginalWidthInPixels
)
public static function FromPixelsUserWidth (
	Width : double, 
	ScaleWidth : double, 
	OriginalWidthInPixels : int
) : double
Not applicable.

Parameters

Width

A Double that represents the width.

ScaleWidth

A Double that represents the Visual Basic 6.0 ScaleWidth for the current ScaleMode.

OriginalWidthInPixels

An Integer that represents the width in pixels.

Return Value

A Double that contains the converted Visual Basic 6.0 ScaleWidth.

Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined value. Visual Basic Code Name "Orcas" only supports a coordinate system that is based on pixels. This function is used by the upgrade tools to convert between pixels and a user-defined scale value.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft