openharmony 鸿蒙 arkts-apis-image-PngMetadata

2026-08-25 浏览 (1)

Class (PngMetadata)

PngMetadata.

PNG 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
xPixelsPerMeternumberYesYesNumber of pixels per meter in the X direction of a PNG image.
The value is a positive integer.
softwarestringYesYesName and version number of the software used to create PNG images.
disclaimerstringYesYesDisclaimer of a PNG image.
descriptionstringYesYesDescription of a PNG image.
copyrightstringYesYesCopyright notice of a PNG image.
interlaceTypenumberYesYesInterlace mode of a PNG image.
- 0: no interlace mode. (The image is loaded sequentially from top to bottom and left to right.)
- 1: interlace mode. (The image is displayed progressively through multiple scans, becoming clearer as loading proceeds.)
commentstringYesYesComment of a PNG image.
authorstringYesYesAuthor of a PNG image.
creationTimestringYesYesCreation time of a PNG image.
modificationTimestringYesYesLast modification time of a PNG image.
gammanumberYesYesGamma value of a PNG image.
yPixelsPerMeternumberYesYesNumber of pixels per meter in the Y direction of a PNG image.
The value is a positive integer.
sRGBIntentnumberYesYesStandard Red Green Blue (sRGB) rendering intent of a PNG image.
- 0: perceptual intent
- 1: relative colorimetric intent
- 2: saturation intent
- 3: absolute colorimetric intent
titlestringYesYesTitle of a PNG image.
warningstringYesYesWarning information of a PNG image.

你可能感兴趣的鸿蒙文章

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