openharmony 鸿蒙 arkts-apis-image-WebPMetadata

2026-08-25 浏览 (1)

class (WebPMetadata)

WebPMetadata

WebP image metadata class, which is used to store image metadata.

NOTE

The initial APIs of this module are supported since API version 24. Newly added APIs will be marked with a superscript to indicate their earliest API version.

Modules to Import

import { image } from '@kit.ImageKit';

Attributes

Model restriction: This API can be used only in the stage model.

System capability: SystemCapability.Multimedia.Image.Core

NameTypeRead-OnlyOptionalDescription
canvasWidthnumberYesYesCanvas width of a WebP image,
in pixels.
canvasHeightnumberYesYesCanvas height of a WebP image,
in pixels.
delayTimenumberYesYesFrame delay of a WebP image after clamping. The clamp range is [100, 65535].
The unit is milliseconds.
unclampedDelayTimenumberYesYesFrame delay of a WebP image without clamping.
The unit is milliseconds.
loopCountnumberYesYesNumber of times the WebP image animation loops. If it is set to 0, the number of animation loops is not limited.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

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