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
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| xPixelsPerMeter | number | Yes | Yes | Number of pixels per meter in the X direction of a PNG image. The value is a positive integer. |
| software | string | Yes | Yes | Name and version number of the software used to create PNG images. |
| disclaimer | string | Yes | Yes | Disclaimer of a PNG image. |
| description | string | Yes | Yes | Description of a PNG image. |
| copyright | string | Yes | Yes | Copyright notice of a PNG image. |
| interlaceType | number | Yes | Yes | Interlace 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.) |
| comment | string | Yes | Yes | Comment of a PNG image. |
| author | string | Yes | Yes | Author of a PNG image. |
| creationTime | string | Yes | Yes | Creation time of a PNG image. |
| modificationTime | string | Yes | Yes | Last modification time of a PNG image. |
| gamma | number | Yes | Yes | Gamma value of a PNG image. |
| yPixelsPerMeter | number | Yes | Yes | Number of pixels per meter in the Y direction of a PNG image. The value is a positive integer. |
| sRGBIntent | number | Yes | Yes | Standard Red Green Blue (sRGB) rendering intent of a PNG image. - 0: perceptual intent - 1: relative colorimetric intent - 2: saturation intent - 3: absolute colorimetric intent |
| title | string | Yes | Yes | Title of a PNG image. |
| warning | string | Yes | Yes | Warning 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