BrightnessContrast class
Defines the BrightnessContrast Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is a14:brightnessContrast.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Office2010.Drawing.BrightnessContrast
Namespace: DocumentFormat.OpenXml.Office2010.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.5.26 CT_PictureEffectBrightnessContrast
Target namespace: http://schemas.microsoft.com/office/drawing/2010/main
Referenced by: CT_PictureEffect
A complex type that specifies a brightness and contrast effect applied to a picture.
The following figure demonstrates the effect applied to a picture with brightness values of –40 percent, –20 percent, zero percent, +20 percent, and +40 percent, respectively.
Figure 24: Effect of changes to brightness
The following figure demonstrates the effect applied to a picture with contrast values of –40 percent, –20 percent, zero percent, +20 percent, and +40 percent, respectively.
Figure 25: Effect of changes to contrast
Attributes:
bright: An ST_FixedPercentage attribute ([ISO/IEC-29500-1] section A.4.1) that specifies the percent to change the brightness.
contrast: An ST_FixedPercentage attribute ([ISO/IEC-29500-1] section A.4.1) that specifies the percent to change the contrast.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_PictureEffectBrightnessContrast">
<xsd:attribute name="bright" type="a:ST_FixedPercentage" use="optional" default="0"/>
<xsd:attribute name="contrast" type="a:ST_FixedPercentage" use="optional" default="0"/>
</xsd:complexType>
See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).