1e41f4b71Sopenharmony_ci# ArkGraphics2D Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.arkgraphics2d.1 Input Parameter Verification Conditions of OH_Drawing_CanvasDrawVertices Changed
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Access Level**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciPublic API
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Reason for Change**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci1. 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.
12e41f4b71Sopenharmony_ci2. 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.
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Change Impact**
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ciThis change is a compatible change.
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ciAfter the change, the drawing capability of this API is expanded, and the verification rules of certain input parameters are optimized.
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci**Start API Level**
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci12
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci**Change Since**
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.36
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci**Key API/Component Changes**
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ciThe following table describes the input parameter verification changes of the **OH_Drawing_CanvasDrawVertices** API.
31e41f4b71Sopenharmony_ci| Parameter | Description | Before Change | After Change |
32e41f4b71Sopenharmony_ci|--------|--------|--------|--------|
33e41f4b71Sopenharmony_ci| 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. |
34e41f4b71Sopenharmony_ci| 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. |
35e41f4b71Sopenharmony_ci| colors | Pointer to the array of colors corresponding to the vertices. | The parameter cannot be left empty. | The parameter can be left empty. |
36e41f4b71Sopenharmony_ci| 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. |
37e41f4b71Sopenharmony_ci| indices | Pointer to the array of indexes corresponding to the vertices. | The parameter cannot be left empty. | The parameter can be left empty. |
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci**Adaptation Guide**
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ciIf you have used this API in your code and the drawing effect meets the expectation, no adaptation modification is required.
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciIf 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).