Share via


UVAtlasOutput.NumberCharts Property (Microsoft.DirectX.Direct3D)

Gets the number of charts created as a result of a UVAtlas method, or the number of charts required to create a texture atlas.

Definition

Visual Basic Public ReadOnly Property NumberCharts As Integer
C# public int NumberCharts { get; }
C++ public:
property int NumberCharts {
        int get();
}
JScript public function get NumberCharts() : int

Property Value

System.Int32
An Int32Leave Site value that represents the number of charts created in the case of a successful UVAtlas texture atlas creation, or the number of charts required to create an atlas. See Remarks.

This property is read-only. 

Remarks

If UVAtlas.Pack or UVAtlas.Partition is called with the value of maxChartNumber set too low, a Direct3DXException will be thrown and this property will return the minimum number of charts required to create an atlas.