PercentageToPixel方法示例
2015-12-15 22:24:26 来源: 评论:0 点击:
下列示例把
TestPicture的顶端坐标、左侧坐标、高度和宽度从30,30,100,150(整个屏幕百分比)转换为像素。Dim dTop As Double Dim dLeft As Double Dim dHeight As Double Dim dWidth As Do
下列示例把 TestPicture的顶端坐标、左侧坐标、高度和宽度从30,30,100,150(整个屏幕百分比)转换为像素。
Dim dTop As Double
Dim dLeft As Double
Dim dHeight As Double
Dim dWidth As Double
dTop = 30
dLeft = 30
dHeight = 100
dWidth = 150
TestPicture.PercentageToPixel dTop, dLeft, dHeight, dWidth