Поделиться через


PictureFormat.IncrementContrast Method

Changes the contrast of the picture by the specified amount.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub IncrementContrast ( _
    Increment As Single _
)
'Usage
Dim instance As PictureFormat
Dim Increment As Single

instance.IncrementContrast(Increment)
void IncrementContrast(
    float Increment
)

Parameters

  • Increment
    Type: System.Single
    Specifies how much to change the value of the Contrast property for the picture. A positive value increases the contrast; a negative value decreases the contrast.

Remarks

Use the Contrast property to set the absolute contrast for the picture.

You cannot adjust the contrast of a picture past the upper or lower limit for the Contrast property. For example, if the Contrast property is initially set to 0.9 and you specify 0.3 for the Increment argument, the resulting contrast level will be 1.0, which is the upper limit for the Contrast property, instead of 1.2.

See Also

Reference

PictureFormat Interface

PictureFormat Members

Microsoft.Office.Interop.PowerPoint Namespace