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


BrightnessContrast Class

Defines the BrightnessContrast Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is a14:brightnessContrast.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.Drawing.BrightnessContrast

Namespace:  DocumentFormat.OpenXml.Office2010.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Декларация
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class BrightnessContrast _
    Inherits OpenXmlLeafElement
'Применение
Dim instance As BrightnessContrast
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class BrightnessContrast : OpenXmlLeafElement

Remarks

2.5.28 CT_PictureEffectBrightnessContrast

Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main

Referenced by: CT_PictureEffect

A complex type that specifies a brightness and contrast effect applied to a picture.

Sample demonstrating the effect applied to a picture with brightness values of -40%, -20%, 0%, +20%, and +40% respectively:

DocumentFormat.OpenXml.Office2010.Drawing.Brightne

Sample demonstrating the effect applied to a picture with contrast values of -40%, -20%, 0%, +20%, and +40% respectively:

DocumentFormat.OpenXml.Office2010.Drawing.Brightne

Attributes:

bright : An ST_FixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the percent to change the brightness*.*

contrast : An ST_FixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute 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).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

BrightnessContrast Members

DocumentFormat.OpenXml.Office2010.Drawing Namespace