From 3d9597ef3c9bd2b32daacc92a58a028d6330636e Mon Sep 17 00:00:00 2001 From: li-kiao Date: Tue, 30 Jan 2024 15:10:25 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Drawing=20C=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8COH=5FDrawing=5FPenSetPathEffect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-kiao Change-Id: Id4a0d1a0f36a52ac2116fc3eaa48eb5d4b81e47d --- graphic/graphic_2d/native_drawing/drawing_pen.h | 11 +++++++++++ .../native_drawing/libnative_drawing.ndk.json | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/graphic/graphic_2d/native_drawing/drawing_pen.h b/graphic/graphic_2d/native_drawing/drawing_pen.h index e94fcb24b..3780c838c 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 9fc2693f1..e916a8a3f 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" }, -- Gitee