Support.FromPixelsUserWidth(Double, Double, Int32) 方法

定义

注意

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

将像素度量值转换为 Visual Basic 6.0 ScaleWidth 度量值。Converts a pixel measurement to a Visual Basic 6.0 ScaleWidth measurement.

public:
 static double FromPixelsUserWidth(double Width, double ScaleWidth, int OriginalWidthInPixels);
public static double FromPixelsUserWidth (double Width, double ScaleWidth, int OriginalWidthInPixels);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static double FromPixelsUserWidth (double Width, double ScaleWidth, int OriginalWidthInPixels);
static member FromPixelsUserWidth : double * double * int -> double
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member FromPixelsUserWidth : double * double * int -> double
Public Function FromPixelsUserWidth (Width As Double, ScaleWidth As Double, OriginalWidthInPixels As Integer) As Double

参数

Width
Double

一个表示宽度的 DoubleA Double that represents the width.

ScaleWidth
Double

一个 Double,它表示当前 ScaleWidth 的 Visual Basic 6.0 ScaleModeA Double that represents the Visual Basic 6.0 ScaleWidth for the current ScaleMode.

OriginalWidthInPixels
Int32

一个表示以像素为单位的宽度的 IntegerAn Integer that represents the width in pixels.

返回

Double

一个 Double,它包含已转换的 Visual Basic 6.0 ScaleWidthA Double that contains the converted Visual Basic 6.0 ScaleWidth.

属性

注解

Visual Basic 6.0 支持多个定义的坐标系统ScaleMode属性。Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. 这包括用户定义的值。This included a user-defined value. Visual Basic 仅支持基于像素坐标系统。Visual Basic 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.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于