VB 往图片上加字

来源:百度知道 编辑:UC知道 时间:2024/07/04 01:19:00
picture1.picture = loadpicture("c:\1.bmp")
picture1.print "图片加载时间:" & time

然后保存picture中的图片为什么 那张图片上没有"图片加载时间:" & time???

首先要将 picture1.AutoRedraw 设为 true
picture1.AutoRedraw =true
保存时应该用
SavePicture Picture1.Image, "d:\11.bmp"
而不能使用
SavePicture Picture1.Picture, "d:\11.bmp"

Image属性表示显示出来的内容,包括你向里面画其他的内容,Picture属性表示源图。