Class (GifMetadata)
GifMetadata.
GIF image metadata class, which is used to store image metadata.
Since: 26.0.0
Modules to Import
import { image } from '@kit.ImageKit';
Properties
Since: 26.0.0
Model restriction: This API can be used only in the stage model.
System capability: SystemCapability.Multimedia.Image.Core
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| delayTime | number | Yes | Yes | Frame delay of a GIF image after clamping. The clamp range is [100, 65535]. The unit is milliseconds. The value is a positive integer. |
| unclampedDelayTime | number | Yes | Yes | Frame delay of a GIF image without clamping. The unit is milliseconds. The value is a positive integer. |
| hasGlobalColorMap | boolean | Yes | Yes | Whether the global color table is contained. The value true indicates yes, and the value false indicates no. |
| loopCount | number | Yes | Yes | Number of GIF loops. The value can be 0 or a positive integer. The value 0 indicates infinite looping, and another value indicates the actual number of loops. |
| disposalType | number | Yes | Yes | Disposal type for each frame of a GIF image. - 0: Unspecified. - 1: Do not dispose. - 2: Restore to the background color. - 3: Restore to the previous frame. The value is a positive integer. |
| canvasHeight | number | Yes | Yes | Canvas height of a GIF image. The unit is px. |
| canvasWidth | number | Yes | Yes | Canvas width of a GIF image. The unit is px. |
你可能感兴趣的鸿蒙文章
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