共用方式為


Shape.PictureFormat 屬性 (Publisher)

會傳回 PictureFormat 物件包含圖片格式設定指定之物件的屬性。 適用于代表圖片或 OLE 物件的 Shape 或 ShapeRange物件。 唯讀。

語法

運算式PictureFormat

表達 代表 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 支援與意見反應