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
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| canvasWidth | number | Yes | Yes | Canvas width of a WebP image, in pixels. |
| canvasHeight | number | Yes | Yes | Canvas height of a WebP image, in pixels. |
| delayTime | number | Yes | Yes | Frame delay of a WebP image after clamping. The clamp range is [100, 65535]. The unit is milliseconds. |
| unclampedDelayTime | number | Yes | Yes | Frame delay of a WebP image without clamping. The unit is milliseconds. |
| loopCount | number | Yes | Yes | Number 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