openharmony 鸿蒙 capi-effect-types-h

2026-08-25 浏览 (1)

effect_types.h

Overview

This file declares the data types of the image effect filter.

File to include: <native_effect/effect_types.h>

Library: libnative_effect.so

System capability: SystemCapability.Multimedia.Image.Core

Since: 12

Related module: effectKit

Summary

Structs

Nametypedef KeywordDescription
OH_Filter_ColorMatrix-Describes a matrix used to create an effect filter.
OH_FilterOH_FilterDefines a struct for a filter used to generate a filter PixelMap.
OH_PixelmapNativeOH_PixelmapNativeDefines a struct for a PixelMap.

Enumerated value

Nametypedef KeywordDescription
EffectErrorCodeEffectErrorCodeEnumerates the status codes that may be used by the effect filter.
EffectTileModeEffectTileModeEnumerates the tile modes of the shader effect.

Enum Description

EffectErrorCode

enum EffectErrorCode

Description

Enumerates the status codes that may be used by the effect filter.

Since: 12

ValueDescription
EFFECT_SUCCESS = 0Operation successful.
EFFECT_BAD_PARAMETER = 401Invalid parameter.
EFFECT_UNSUPPORTED_OPERATION = 7600201Unsupported operation.
EFFECT_UNKNOWN_ERROR = 7600901Unknown error.

EffectTileMode

enum EffectTileMode

Description

Enumerates the tile modes of the shader effect.

Since: 14

ValueDescription
CLAMP = 0Replicates the edge color if the shader effect draws outside of its original boundary.
REPEATRepeats the shader effect in both horizontal and vertical directions.
MIRRORRepeats the shader effect in both horizontal and vertical directions, alternating mirror images.
DECALRenders the shader effect only within the original boundary.

你可能感兴趣的鸿蒙文章

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/zxmyEKKP