---
title: "CmxFillStyle Class"
url: "https://reference.aspose.com/imaging/python-net/aspose.imaging.fileformats.cmx.objectmodel.styles/cmxfillstyle/"
---


**Summary:** Fill style for shapes.

**Module:** [aspose.imaging.fileformats.cmx.objectmodel.styles](/imaging/python-net/aspose.imaging.fileformats.cmx.objectmodel.styles/)

**Full Name:** aspose.imaging.fileformats.cmx.objectmodel.styles.CmxFillStyle

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [CmxFillStyle()](#CmxFillStyle__1) | Initializes a new instance of the CmxFillStyle class |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| color1 | [CmxColor](/imaging/python-net/aspose.imaging.fileformats.cmx.objectmodel.styles/cmxcolor/) | r/w | Gets or sets the primary color. |
| color2 | [CmxColor](/imaging/python-net/aspose.imaging.fileformats.cmx.objectmodel.styles/cmxcolor/) | r/w | Gets or sets the secondary color. |
| fill_type | [FillTypes](/imaging/python-net/aspose.imaging.fileformats.cmx.objectmodel.enums/filltypes/) | r/w | Gets or sets the type of the fill. |
| gradient | [CmxGradient](/imaging/python-net/aspose.imaging.fileformats.cmx.objectmodel.styles/cmxgradient/) | r/w | Gets or sets the gradient info. |
| image_fill | [CmxImageFill](/imaging/python-net/aspose.imaging.fileformats.cmx.objectmodel.styles/cmximagefill/) | r/w | Gets or sets the image fill info. |
| transform | [Matrix](/imaging/python-net/aspose.imaging/matrix/) | r/w | Gets or sets the fill transform. |


### Constructor: CmxFillStyle() {#CmxFillStyle__1}


```
 CmxFillStyle() 
```

Initializes a new instance of the CmxFillStyle class

