This documentation is archived and is not being maintained.

PictureFormat.Contrast Property

Office 2007
Returns or sets a Single indicating the contrast for the specified picture or OLE object. The value for this property must be a number from 0.0 (the least contrast) to 1.0 (the greatest contrast). Read/write.

Syntax

expression.Contrast

expression   A variable that represents a PictureFormat object.

Return Value
Single

Remarks

Use the IncrementContrast method to incrementally adjust the contrast from its current level.

Example

This example sets the contrast for the first shape in the active publication. The shape must be either a picture or an OLE object.

Visual Basic for Applications
ActiveDocument.Pages(1).Shapes(1).PictureFormat _
    .Contrast = 0.8



Show: