openharmony 鸿蒙 capi-drawing-shader-effect-h

2026-08-25 浏览 (1)

drawing_shader_effect.h

Overview

This file declares the functions related to the shader effect in the drawing module.

File to include: <native_drawing/drawing_shader_effect.h>

Library: libnative_drawing.so

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 11

Related module: Drawing

Summary

Enums

Nametypedef KeywordDescription
OH_Drawing_TileModeOH_Drawing_TileModeDefines an enum for the tile modes of the shader effect.

Functions

NameDescription
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateColorShader(const uint32_t color)Creates an OH_Drawing_ShaderEffect object with a single color.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateLinearGradient(const OH_Drawing_Point* startPt,const OH_Drawing_Point* endPt, const uint32_t* colors,const float* pos, uint32_t size, OH_Drawing_TileMode tileMode)Creates a ShaderEffect object that generates a linear gradient between two points.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If any of startPt, endPt, and colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix(const OH_Drawing_Point2D* startPt, const OH_Drawing_Point2D* endPt, const uint32_t* colors, const float* pos,uint32_t size, OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)Creates a ShaderEffect object that generates a linear gradient between two points.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If any of startPt, endPt, and colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateRadialGradient(const OH_Drawing_Point* centerPt, float radius,const uint32_t* colors, const float* pos, uint32_t size, OH_Drawing_TileMode tileMode)Creates an OH_Drawing_ShaderEffect object that generates a radial gradient based on the center and radius of a circle.
The radial gradient transitions colors from the center to the ending shape in a radial manner.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either centerPt or colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix(const OH_Drawing_Point2D* centerPt, float radius, const uint32_t* colors, const float* pos, uint32_t size,OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)Creates an OH_Drawing_ShaderEffect object that generates a radial gradient based on the center and radius of a circle.
The radial gradient transitions colors from the center to the ending shape in a radial manner.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either centerPt or colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateSweepGradientWithLocalMatrix(const OH_Drawing_Point* centerPt,const uint32_t* colors, const float* pos, uint32_t size, OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)Creates an OH_Drawing_ShaderEffect object that generates a sweep gradient based on the matrix transformation at the given center.
A sweep gradient paints a gradient in a sweeping arc ranging from 0° to 360°.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateSweepGradient(const OH_Drawing_Point* centerPt,const uint32_t* colors, const float* pos, uint32_t size, OH_Drawing_TileMode tileMode)Creates an OH_Drawing_ShaderEffect object that generates a sweep gradient based on the center.
A sweep gradient paints a gradient in a sweeping arc ranging from 0° to 360°.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either centerPt or colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateImageShader(OH_Drawing_Image* image,OH_Drawing_TileMode tileX, OH_Drawing_TileMode tileY, const OH_Drawing_SamplingOptions* samplingOptions,const OH_Drawing_Matrix* matrix)Creates an OH_Drawing_ShaderEffect object for an image shader. You are advised not to use the function for the canvas of the capture type because it affects the performance.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either image or samplingOptions is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If either tileX or tileY is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateTwoPointConicalGradient(const OH_Drawing_Point2D* startPt,float startRadius, const OH_Drawing_Point2D* endPt, float endRadius, const uint32_t* colors, const float* pos,uint32_t size, OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)Creates an OH_Drawing_ShaderEffect object that generates a gradient between two given circles.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If any of startPt, endPt, and colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateCompose(OH_Drawing_ShaderEffect* dst,OH_Drawing_ShaderEffect* src, OH_Drawing_BlendMode mode)Creates a shader by blending two existing shaders in a certain way.
void OH_Drawing_ShaderEffectDestroy(OH_Drawing_ShaderEffect* shaderEffect)Destroys an OH_Drawing_ShaderEffect object and reclaims the memory occupied by the object.
OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreatePixelMapShader(OH_Drawing_PixelMap* pixelMap,OH_Drawing_TileMode tileX, OH_Drawing_TileMode tileY, const OH_Drawing_SamplingOptions* samplingOptions,const OH_Drawing_Matrix* matrix)Creates a PixelMap shader object.

Enum Description

OH_Drawing_TileMode

enum OH_Drawing_TileMode

Description

Defines an enum for the tile modes of the shader effect.

Since: 11

EnumDescription
CLAMPReplicates the edge color if the shader effect draws outside of its original boundary.
REPEATRepeats the shader effect's image in both horizontal and vertical directions.
MIRRORRepeats the shader effect's image in both horizontal and vertical directions, alternating mirror images.
DECALRenders the shader effect's image only within the original boundary, and returns transparent black elsewhere.

Function Description

OH_Drawing_ShaderEffectCreatePixelMapShader()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreatePixelMapShader(OH_Drawing_PixelMap* pixelMap,OH_Drawing_TileMode tileX, OH_Drawing_TileMode tileY, const OH_Drawing_SamplingOptions* samplingOptions,const OH_Drawing_Matrix* matrix)

Description

Creates a PixelMap shader object.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 20

Parameters

NameDescription
OH_Drawing_PixelMap* pixelMapPointer to the OH_Drawing_PixelMap object.
OH_Drawing_TileMode tileXTile mode of the shader effect in the horizontal direction. For details about the available options, see OH_Drawing_TileMode.
OH_Drawing_TileMode tileYTile mode of the shader effect in the vertical direction. For details about the available options, see OH_Drawing_TileMode.
const OH_Drawing_SamplingOptions* samplingOptionsPointer to the OH_Drawing_SamplingOptions object.
const OH_Drawing_Matrix* matrixPointer to the OH_Drawing_Matrix object. If the pointer array is empty, the identity matrix is passed in.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created.

OH_Drawing_ShaderEffectCreateColorShader()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateColorShader(const uint32_t color)

Description

Creates an OH_Drawing_ShaderEffect object with a single color.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
const uint32_t colorColor in the ARGB format. The value is a 32-bit unsigned integer.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created. If NULL is returned, the creation fails. The possible failure cause is that no memory is available.

OH_Drawing_ShaderEffectCreateLinearGradient()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateLinearGradient(const OH_Drawing_Point* startPt,const OH_Drawing_Point* endPt, const uint32_t* colors,const float* pos, uint32_t size, OH_Drawing_TileMode tileMode)

Description

Creates a ShaderEffect object that generates a linear gradient between two points.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If any of startPt, endPt, and colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 11

Parameters

NameDescription
const OH_Drawing_Point* startPtStart point.
const OH_Drawing_Point* endPtEnd point.
const uint32_t* colorsColors to distribute between the two points.
const float* posRelative position of each color in the color array. The array length must be the same as that of colors. If pos is NULL, colors are evenly distributed between the start point and end point.
uint32_t sizeNumber of colors and positions (if pos is not NULL).
OH_Drawing_TileMode tileModeTile mode of the shader effect. For details about the available options, see OH_Drawing_TileMode.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created.

OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix(const OH_Drawing_Point2D* startPt, const OH_Drawing_Point2D* endPt, const uint32_t* colors, const float* pos,uint32_t size, OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)

Description

Creates a ShaderEffect object that generates a linear gradient between two points.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If any of startPt, endPt, and colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
const OH_Drawing_Point2D* startPtStart point.
const OH_Drawing_Point2D* endPtEnd point.
const uint32_t* colorsColors to distribute between the two points.
const float* posRelative position of each color in the color array. The array length must be the same as that of colors. If pos is NULL, colors are evenly distributed between the start point and end point.
uint32_t sizeNumber of colors and positions (if pos is not NULL).
OH_Drawing_TileMode tileModeTile mode of the shader effect. For details about the available options, see OH_Drawing_TileMode.
const OH_Drawing_Matrix* matrixMatrix applied on the shader effect. If matrix is NULL, an identity matrix is applied by default.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created. If NULL is returned, the creation fails. The possible failure cause is that no memory is available or at least one of the parameters startPt, endPt, and colors is NULL.

OH_Drawing_ShaderEffectCreateRadialGradient()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateRadialGradient(const OH_Drawing_Point* centerPt, float radius,const uint32_t* colors, const float* pos, uint32_t size, OH_Drawing_TileMode tileMode)

Description

Creates an OH_Drawing_ShaderEffect object that generates a radial gradient based on the center and radius of a circle.
The radial gradient transitions colors from the center to the ending shape in a radial manner.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either centerPt or colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 11

Parameters

NameDescription
const OH_Drawing_Point* centerPtCenter of the circle.
float radiusRadius of the gradient. The value should be a non-negative number.
const uint32_t* colorsColors to distribute in the radial direction.
const float* posRelative position of each color in the color array. The array length must be the same as that of colors. If pos is NULL, colors are evenly distributed in the radial direction.
uint32_t sizeNumber of colors and positions (if pos is not NULL).
OH_Drawing_TileMode tileModeTile mode of the shader effect. For details about the available options, see OH_Drawing_TileMode.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created.

OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix(const OH_Drawing_Point2D* centerPt, float radius, const uint32_t* colors, const float* pos, uint32_t size,OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)

Description

Creates an OH_Drawing_ShaderEffect object that generates a radial gradient based on the center and radius of a circle.
The radial gradient transitions colors from the center to the ending shape in a radial manner.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either centerPt or colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
const OH_Drawing_Point2D* centerPtCenter of the circle.
float radiusRadius of the gradient.
const uint32_t* colorsColors to distribute in the radial direction.
const float* posRelative position of each color in the color array. The array length must be the same as that of colors. If pos is NULL, colors are evenly distributed in the radial direction.
uint32_t sizeNumber of colors and positions (if pos is not NULL).
OH_Drawing_TileMode tileModeTile mode of the shader effect. For details about the available options, see OH_Drawing_TileMode.
const OH_Drawing_Matrix* matrixMatrix applied on the shader effect. If matrix is NULL, an identity matrix is applied by default.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created. If NULL is returned, the creation fails. The possible failure cause is that no memory is available or at least one of the parameters centerPt and colors is NULL.

OH_Drawing_ShaderEffectCreateSweepGradientWithLocalMatrix()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateSweepGradientWithLocalMatrix(const OH_Drawing_Point* centerPt,const uint32_t* colors, const float* pos, uint32_t size, OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)

Description

Creates an OH_Drawing_ShaderEffect object that generates a sweep gradient based on the matrix transformation at the given center.
A sweep gradient paints a gradient in a sweeping arc ranging from 0° to 360°.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 20

Parameters

NameDescription
const OH_Drawing_Point* centerPtCenter of the circle.
const uint32_t* colorsColors to distribute between the two points.
const float* posRelative position of each color in the color array. The array length must be the same as that of colors. If pos is NULL, colors are evenly distributed between the start angle (0°) and end angle (360°).
uint32_t sizeNumber of colors and positions (if pos is not NULL).
OH_Drawing_TileMode tileModeTile mode of the shader effect. For details about the available options, see OH_Drawing_TileMode.
const OH_Drawing_Matrix* matrixMatrix applied on the shader effect. If matrix is NULL, an identity matrix is applied by default.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created.
A null pointer is returned if any of the following conditions is met:
- The available memory is empty.
- centerPt or colors is NULL.
- The value of tileMode is out of the enumerated value range.

OH_Drawing_ShaderEffectCreateSweepGradient()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateSweepGradient(const OH_Drawing_Point* centerPt,const uint32_t* colors, const float* pos, uint32_t size, OH_Drawing_TileMode tileMode)

Description

Creates an OH_Drawing_ShaderEffect object that generates a sweep gradient based on the center.
A sweep gradient paints a gradient in a sweeping arc ranging from 0° to 360°.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either centerPt or colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 11

Parameters

NameDescription
const OH_Drawing_Point* centerPtCenter of the circle.
const uint32_t* colorsColors to distribute between the two points.
const float* posRelative position of each color in the color array. The array length must be the same as that of colors. If pos is NULL, colors are evenly distributed between the start angle (0°) and end angle (360°).
uint32_t sizeNumber of colors and positions (if pos is not NULL).
OH_Drawing_TileMode tileModeTile mode of the shader effect. For details about the available options, see OH_Drawing_TileMode.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created.
A null pointer is returned if any of the following conditions is met:
- The available memory is empty.
- centerPt or colors is NULL.
- The value of tileMode is out of the enumerated value range.

OH_Drawing_ShaderEffectCreateImageShader()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateImageShader(OH_Drawing_Image* image,OH_Drawing_TileMode tileX, OH_Drawing_TileMode tileY, const OH_Drawing_SamplingOptions* samplingOptions,const OH_Drawing_Matrix* matrix)

Description

Creates an OH_Drawing_ShaderEffect object for an image shader. You are advised not to use the function for the canvas of the capture type because it affects the performance.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If either image or samplingOptions is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If either tileX or tileY is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
OH_Drawing_Image* imagePointer to the OH_Drawing_Image object.
OH_Drawing_TileMode tileXTile mode of the shader effect in the horizontal direction. For details about the available options, see OH_Drawing_TileMode.
OH_Drawing_TileMode tileYTile mode of the shader effect in the vertical direction. For details about the available options, see OH_Drawing_TileMode.
const OH_Drawing_SamplingOptions* samplingOptionsPointer to the OH_Drawing_SamplingOptions object.
const OH_Drawing_Matrix* matrixPointer to the OH_Drawing_Matrix object. If the pointer array is empty, the identity matrix is passed in.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created.
A null pointer is returned if any of the following conditions is met:
- The available memory is empty.
- image or samplingOptions is NULL.
- The value of tileX or tileY is out of the enumerated value range.

OH_Drawing_ShaderEffectCreateTwoPointConicalGradient()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateTwoPointConicalGradient(const OH_Drawing_Point2D* startPt,float startRadius, const OH_Drawing_Point2D* endPt, float endRadius, const uint32_t* colors, const float* pos,uint32_t size, OH_Drawing_TileMode tileMode, const OH_Drawing_Matrix* matrix)

Description

Creates an OH_Drawing_ShaderEffect object that generates a gradient between two given circles.
This API may return an error code. For details, call OH_Drawing_ErrorCodeGet.
If any of startPt, endPt, and colors is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
If tileMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
const OH_Drawing_Point2D* startPtPointer to the center of the start circle.
float startRadiusStart radius of the gradient. The value should be a non-negative number.
const OH_Drawing_Point2D* endPtPointer to the center of the end circle.
float endRadiusEnd radius of the gradient. The value should be a non-negative number.
const uint32_t* colorsColors to distribute between the two circles.
const float* posRelative position of each color in the color array. The array length must be the same as that of colors. If pos is NULL, colors are evenly distributed between the two circles.
uint32_t sizeNumber of colors and positions (if pos is not NULL).
OH_Drawing_TileMode tileModeTile mode of the shader effect. For details about the available options, see OH_Drawing_TileMode.
const OH_Drawing_Matrix* matrixMatrix applied on the shader effect. If matrix is NULL, an identity matrix is applied by default.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created. If the returned pointer is NULL, the creation fails. The possible causes are as follows:
- The available memory is empty.
- startPt, endPt, or colors is NULL.
- The value of tileMode is out of the enumerated value range.

OH_Drawing_ShaderEffectCreateCompose()

OH_Drawing_ShaderEffect* OH_Drawing_ShaderEffectCreateCompose(OH_Drawing_ShaderEffect* dst,OH_Drawing_ShaderEffect* src, OH_Drawing_BlendMode mode)

Description

Creates a shader by blending two existing shaders in a certain way.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 20

Parameters

NameDescription
OH_Drawing_ShaderEffect* dstShader that serves as the destination color in blend mode.
OH_Drawing_ShaderEffect* srcShader that serves as the source color in blend mode.
OH_Drawing_BlendMode modeBlend mode.

Returns

TypeDescription
OH_Drawing_ShaderEffect*Returns the pointer to the OH_Drawing_ShaderEffect object created.
If the returned pointer is NULL, the creation fails. The possible causes are as follows:
- The available memory is empty.
- dst or src is NULL.
- The value of mode is out of the enumerated value range.

OH_Drawing_ShaderEffectDestroy()

void OH_Drawing_ShaderEffectDestroy(OH_Drawing_ShaderEffect* shaderEffect)

Description

Destroys an OH_Drawing_ShaderEffect object and reclaims the memory occupied by the object.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 11

Parameters

NameDescription
OH_Drawing_ShaderEffect* shaderEffectPointer to an OH_Drawing_ShaderEffect object.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-drawing-gpu-context-h

openharmony 鸿蒙 capi-drawing-nativepixelmap-

openharmony 鸿蒙 capi-nativevsync-oh-nativevsync-expectedraterange

openharmony 鸿蒙 capi-drawing-oh-drawing-brush

openharmony 鸿蒙 capi-drawing-oh-drawing-image-info

openharmony 鸿蒙 capi-drawing-text-linetypography-h

openharmony 鸿蒙 capi-oh-nativeimage-oh-nativeimage

openharmony 鸿蒙 capi-drawing-typeface-h

openharmony 鸿蒙 capi-drawing-brush-h

openharmony 鸿蒙 capi-nativewindow

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/VkyuKCOc