diff --git a/graphic/graphic_2d/native_drawing/drawing_pen.h b/graphic/graphic_2d/native_drawing/drawing_pen.h
index e94fcb24b91c04ed2254c09365ac5a66ec81be4e..3780c838ce90d78f126e73d32fe7518797c0d09e 100644
--- a/graphic/graphic_2d/native_drawing/drawing_pen.h
+++ b/graphic/graphic_2d/native_drawing/drawing_pen.h
@@ -280,6 +280,17 @@ void OH_Drawing_PenSetJoin(OH_Drawing_Pen*, OH_Drawing_PenLineJoinStyle);
*/
void OH_Drawing_PenSetShaderEffect(OH_Drawing_Pen*, OH_Drawing_ShaderEffect*);
+/**
+ * @brief Sets the pathEffect for a pen.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param OH_Drawing_Pen Indicates the pointer to an OH_Drawing_Pen object.
+ * @param OH_Drawing_PathEffect Indicates the pointer to an OH_Drawing_PathEffect object.
+ * @since 12
+ * @version 1.0
+ */
+void OH_Drawing_PenSetPathEffect(OH_Drawing_Pen*, OH_Drawing_PathEffect*);
+
/**
* @brief Sets the filter for a pen.
*
diff --git a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
index 9fc2693f161984795eece43bb398f4c81af37bbb..e916a8a3fe59e3b9ff8f3a1adf56ffaae4afd58c 100644
--- a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
+++ b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
@@ -130,6 +130,10 @@
{ "name": "OH_Drawing_PenSetJoin" },
{ "name": "OH_Drawing_PenSetFilter" },
{ "name": "OH_Drawing_PenSetShaderEffect" },
+ {
+ "first_introduced": "12",
+ "name": "OH_Drawing_PenSetPathEffect"
+ },
{ "name": "OH_Drawing_PointCreate" },
{ "name": "OH_Drawing_PointDestroy" },
{ "name": "OH_Drawing_ColorSetArgb" },