用一幅大图像来填充指定形状。如果要通过平铺小图像来填充形状,请使用
UserTextured 方法。
语法
表达式.UserPicture(PictureFile)
表达式 一个代表 FillFormat 对象的变量。
参数
名称 |
必选/可选 |
数据类型 |
描述 |
PictureFile |
必选 |
String |
图片文件名。 |
示例
本示例向 myDocument
中添加了两个矩形。用 Tiles.bmp 文件中的一幅大图像填充左边的矩形;用 Tiles.bmp 文件中若干平铺的小图像填充右边的矩形
示例代码 |
let myDocument = ActivePresentation.Slides.Item(1)
let dShapes = myDocument.Shapes
dShapes.AddShape(msoShapeRectangle, 0, 0, 200, 100).Fill.UserPicture("c:\\windows\\tiles.bmp")
dShapes.AddShape(msoShapeRectangle, 300, 0, 200, 100).Fill.UserTextured("c:\\windows\\tiles.bmp")
|
user picture User Picture 方法 UserPicture 方法 使用徽标作为背景? 用单张自定义照片来填充形状的背景?