1# ArkGraphics2D Changelog
2
3## cl.arkgraphics2d.1 Input Parameter Verification Conditions of OH_Drawing_CanvasDrawVertices Changed
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
111. The input parameters **texs**, **colors**, and **indices** of the **OH_Drawing_CanvasDrawVertices** API cannot be empty. This constraint restricts the drawing capability of this API.
122. The verification of the input parameters **vertexCount** and **indexCount** of the **OH_Drawing_CanvasDrawVertices** API should be optimized to avoid the situation where no drawing content is displayed while no error code is displayed.
13
14**Change Impact**
15
16This change is a compatible change.
17
18After the change, the drawing capability of this API is expanded, and the verification rules of certain input parameters are optimized.
19
20**Start API Level**
21
2212
23
24**Change Since**
25
26OpenHarmony SDK 5.0.0.36
27
28**Key API/Component Changes**
29
30The following table describes the input parameter verification changes of the **OH_Drawing_CanvasDrawVertices** API.
31| Parameter | Description | Before Change | After Change |
32|--------|--------|--------|--------|
33| vertexCount | Number of vertices in the vertex array. | The value must be greater than or equal to 0. | The value must be greater than or equal to 3. |
34| texs | Pointer to the array of texture space coordinates corresponding to the vertices. | The parameter cannot be left empty. | The parameter can be left empty. |
35| colors | Pointer to the array of colors corresponding to the vertices. | The parameter cannot be left empty. | The parameter can be left empty. |
36| indexCount | Number of indices. | The value must be greater than or equal to 0. | The value must be equal to 0 or greater than or equal to 3. |
37| indices | Pointer to the array of indexes corresponding to the vertices. | The parameter cannot be left empty. | The parameter can be left empty. |
38
39**Adaptation Guide**
40
41If you have used this API in your code and the drawing effect meets the expectation, no adaptation modification is required.
42
43If you newly use the API or if the drawing effect does not meet expectations, make adaptation by following the instructions provided in [API Reference](../../../application-dev/reference/apis-arkgraphics2d/_drawing.md#oh_drawing_canvasdrawvertices).