3.4.2 Image Recoloring
The following code example demonstrates the structure of the data model for a SmartArt diagram. The recolorImg element is set to TRUE and causes the images associated with the SmartArt diagram to be recolored according to the assigned color scheme and theme.
-
<dgm:dataModel xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"> <dgm:ptLst> ... </dgm:ptLst> ... <dgm:whole/> <dgm:extLst> <a:ext uri="http://schemas.microsoft.com/office/drawing/2008/diagram"> <dsp:dataModelExt xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram" relId="rId6" minVer="http://schemas.openxmlformats.org/drawingml/2006/diagram"/> </a:ext> <a:ext uri="C62137D5-CB1D-491b-B009-E17868A290BF"> <dgm14:recolorImg xmlns:dgm14="http://schemas.microsoft.com/office/drawing/2010/diagram" val="1"/> </a:ext> </dgm:extLst> </dgm:dataModel>