Table of contents
TOC
折叠目录
展开目录

PictureFormat.IncrementBrightness 方法 (PowerPoint)PictureFormat.IncrementBrightness Method (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

按指定数值更改图片的亮度。Changes the brightness of the picture by the specified amount.

语法Syntax

表达式IncrementBrightness增量expression. IncrementBrightness( Increment )

表达式_一个表示PictureFormat对象的变量。_expression A variable that represents an PictureFormat object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
增量Increment必需Required一个Single指定量更改图片的亮度属性的值。正值使图片更亮;使用负值可使图片变暗。Specifies how much to change the value of the Brightness property for the picture. A positive value makes the picture brighter; a negative value makes the picture darker.

注解Remarks

亮度属性用于设置图片的绝对亮度。Use the Brightness property to set the absolute brightness of the picture.

您不能调整亮度属性值的上下界图片的亮度。例如,如果亮度属性最初设置为 0.9,指定增量参数的 0.3,产生的亮度级别将为 1.0,即亮度属性,而不是 1.2 的上限值。You cannot adjust the brightness of a picture past the upper or lower limit for the Brightness property. For example, if the Brightness property is initially set to 0.9 and you specify 0.3 for the Increment argument, the resulting brightness level will be 1.0, which is the upper limit for the Brightness property, instead of 1.2.

示例Example

本示例创建一个形状的副本上myDocument,然后将移动并暗。本示例生效,第一个形状必须是图片或 OLE 对象。This example creates a duplicate of shape one on myDocument and then moves and darkens the duplicate. For the example to work, shape one must be either a picture or an OLE object.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).Duplicate

    .PictureFormat.IncrementBrightness -0.2

    .IncrementLeft 50

    .IncrementTop 50

End With

另请参阅See also

概念Concepts

PictureFormat 对象PictureFormat Object

© 2018 Microsoft