1# ArkGraphics2D Changelog
2
3## c1.ArkGraphics2D.1 OH_NativeImage_GetTransformMatrix Deprecated
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11This API does not fully implement the output of a matrix. Therefore, it needs to be deprecated and replaced with a new one.
12
13**Change Impact**
14
15This change is a non-compatible change.
16
17You are advised to use **OH_NativeImage_GetTransformMatrixV2** instead of **OH_NativeImage_GetTransformMatrix**.
18
19**Start API Level**
20
219
22
23**Change Since**
24
25OpenHarmony SDK 5.0.0.31
26
27**Deprecated APIs/Components**
28
29The **OH_NativeImage_GetTransformMatrix** API is deprecated. Use **OH_NativeImage_GetTransformMatrixV2** instead.
30
31**Adaptation Guide**
32
33Replace **OH_NativeImage_GetTransformMatrix** with **OH_NativeImage_GetTransformMatrixV2**.
34
35## c1.ArkGraphics2D.2 OH_NativeWindow_CreateNativeWindow Deprecated
36
37**Access Level**
38
39Public API
40
41**Reason for Change**
42
43Users cannot obtain the input parameter type and therefore cannot actually use this API.
44
45**Change Impact**
46
47This change is a non-compatible change.
48
49There is no impact. Users cannot use the API.
50
51**Start API Level**
52
538
54
55**Change Since**
56
57OpenHarmony SDK 5.0.0.31
58
59**Deprecated APIs/Components**
60
61The **OH_NativeWindow_CreateNativeWindow** API is deprecated and no substitute is provided.
62
63**Adaptation Guide**
64
65There is no impact. Users cannot use the API.
66
67## c1.ArkGraphics2D.3 OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer Deprecated
68
69**Access Level**
70
71Public API
72
73**Reason for Change**
74
75Users cannot obtain the input parameter type and therefore cannot actually use this API.
76
77**Change Impact**
78
79This change is a non-compatible change.
80
81There is no impact. Users cannot use the API.
82
83**Start API Level**
84
858
86
87**Change Since**
88
89OpenHarmony SDK 5.0.0.31
90
91**Deprecated APIs/Components**
92
93The **OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer** API is deprecated. You are advised to use **OH_NativeWindow_CreateNativeWindowBufferFromNativeBuffer** instead.
94
95**Adaptation Guide**
96
97There is no impact. Users cannot use the API.
98
99## c1.ArkGraphics2D.4 OH_NativeWindow_GetLastFlushedBuffer Deprecated
100
101**Access Level**
102
103Public API
104
105**Reason for Change**
106
107This API does not fully implement the output of a matrix. Therefore, it needs to be deprecated and replaced with a new one.
108
109**Change Impact**
110
111This change is a non-compatible change.
112
113You are advised to use **OH_NativeWindow_GetLastFlushedBufferV2** instead of **OH_NativeWindow_GetLastFlushedBuffer**.
114
115**Start API Level**
116
11711
118
119**Change Since**
120
121OpenHarmony SDK 5.0.0.31
122
123**Deprecated APIs/Components**
124
125The **OH_NativeWindow_GetLastFlushedBuffer** API is deprecated. Use **OH_NativeWindow_GetLastFlushedBufferV2** instead.
126
127**Adaptation Guide**
128
129Replace **OH_NativeWindow_GetLastFlushedBuffer** with **OH_NativeWindow_GetLastFlushedBufferV2**.
130
131## cl.ArkGraphics2D.5 Error Code Is Added to OH_Drawing_RegisterFont() and OH_Drawing_RegisterFontBuffer()
132
133**Access Level**
134
135Public API
136
137**Reason for Change**
138
139The **OH_Drawing_RegisterFont()** and **OH_Drawing_RegisterFontBuffer()** APIs do not verify the file content.
140
141**Change Impact**
142
143This change is a non-compatible change.
1441. Before change: The file content is not verified. If the file is damaged, the default font is used and a success message is returned.
1452. After change: The file content is verified. If the font fails to be created, error code 9 is reported, indicating that the file is damaged.
146
147**Start API Level**
148
14911
150
151**Change Since**
152
153OpenHarmony SDK 5.0.0.32
154
155**Key API/Component Changes**
156
157Error code 9 indicating file damage is added to **OH_Drawing_RegisterFont()** and **OH_Drawing_RegisterFontBuffer()**.
158
159**Adaptation Guide**
160
161Search for **OH_Drawing_RegisterFont** and **OH_Drawing_RegisterFontBuffer** globally to adapt to the new error code.
162