Publisher) (Shape.PictureFormat 属性

返回一个 PictureFormat 对象,该对象包含格式设置为指定的对象属性的图片。 适用于表示图片或 OLE 对象的 Shape 或 ShapeRange 对象。 此为只读属性。

语法

表达式。PictureFormat

expression 一个代表 Shape 对象的变量。

示例

以下示例设置当前出版物的第一页上的所有图片的亮度和对比度。

Sub FixPictureContrastBrightness() 
 Dim shp As Shape 
 For Each shp In ActiveDocument.Pages(1).Shapes 
 If shp.Type = pbPicture Then 
 With shp.PictureFormat 
 .Brightness = 0.6 
 .Contrast = 0.6 
 End With 
 End If 
 Next shp 
End Sub

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。