openharmony 鸿蒙 arkts-apis-image-GifMetadata

2026-08-25 浏览 (1)

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

NameTypeRead-OnlyOptionalDescription
delayTimenumberYesYesFrame delay of a GIF image after clamping. The clamp range is [100, 65535].
The unit is milliseconds.
The value is a positive integer.
unclampedDelayTimenumberYesYesFrame delay of a GIF image without clamping.
The unit is milliseconds.
The value is a positive integer.
hasGlobalColorMapbooleanYesYesWhether the global color table is contained.
The value true indicates yes, and the value false indicates no.
loopCountnumberYesYesNumber 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.
disposalTypenumberYesYesDisposal 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.
canvasHeightnumberYesYesCanvas height of a GIF image.
The unit is px.
canvasWidthnumberYesYesCanvas 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

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

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