Support.FromPixelsUserY(Double, 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 ScaleTop 度量。

public:
 static double FromPixelsUserY(double Y, double ScaleTop, double ScaleHeight, int OriginalHeightInPixels);
public static double FromPixelsUserY(double Y, double ScaleTop, double ScaleHeight, int OriginalHeightInPixels);
[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 FromPixelsUserY(double Y, double ScaleTop, double ScaleHeight, int OriginalHeightInPixels);
static member FromPixelsUserY : double * 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 FromPixelsUserY : double * double * double * int -> double
Public Function FromPixelsUserY (Y As Double, ScaleTop As Double, ScaleHeight As Double, OriginalHeightInPixels As Integer) As Double

参数

Y
Double

表示 X 坐标的 A Double

ScaleTop
Double

一个 Double,表示当前 ScaleTop 的 Visual Basic 6.0 ScaleMode

ScaleHeight
Double

一个 Double,表示当前 ScaleHeight 的 Visual Basic 6.0 ScaleMode

OriginalHeightInPixels
Int32

一个 Integer 表示高度(以像素为单位)。

返回

包含转换后的 Visual Basic 6.0 DoubleScaleTop

属性

注解

Visual Basic 6.0 支持由 ScaleMode 属性定义的多个坐标系。 这包括用户定义的值。 Visual Basic仅支持基于像素的坐标系。 升级工具使用此函数在像素和用户定义的缩放值之间进行转换。

注释

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 2008 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

适用于