LoadPicture

作者在 2008-04-05 16:00:00 发布以下内容

From:   http://msdn2.microsoft.com/en-us/library/aa264946(VS.60).aspx

LoadPicture( [filename], [size], [colordepth],[x,y] )

filename Optional. String expression specifying a filename. Can include folder and drive. If no filename is specified LoadPicture clears the Image or PictureBox control.
size Optional variant. If filename is a cursor or icon file, specifies the desired image size.
colordepth Optional variant. If filename is a cursor or icon file, specifies the desired color depth.
x Optional variant, required if y is used. If filename is a cursor or icon file, specifies the width desired. In a file containing multiple separate images, the best possible match is used if an image of that size is not available. X and y values are only used when colordepth is set to vbLPCustom. For icon files 255 is the maximum possible value.
y

Optional variant, required if x is used. If filename is a cursor or icon file, specifies the height desired. In a file containing multiple separate images, the best possible match is used if an image of that size is not available. For icon files 255 is the maximum possible value.

 

size :

vbLPSmall 0 System small icon.
vbLPLarge 1 System large icon size, as determined by the video driver.
vbLPSmallShell 2 Shell small icon size, as determined by the Caption Buttons size setting on the Appearance tab in the Control Panel Display Properties dialog box.
vbLPLargeShell 3 Shell large icon size, as determined by the Icon size setting on the Appearance tab in the Control Panel Display Properties dialog box.
vbLPCustom 4 Custom size, values provided by x and y arguments

 

colordepth :

vbLPDefault 0 Best available match if the specified file is used.
vbLPMonochrome 1 2 colors.
vbLPVGAColor 2 16 colors.
vbLPColor 3 256 colors.

VB | 阅读 2531 次
文章评论,共0条
游客请输入验证码
浏览84764次