openharmony 鸿蒙 arkts-apis-image-TiffMetadata

2026-08-25 浏览 (1)

Class (TiffMetadata)

TiffMetadata.

TIFF 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
primaryChromaticitiesnumber[]YesYesChromaticity coordinates of the RGB primaries in an image.
tileWidthnumberYesYesWidth of each image tile.
The unit is px.
The value is a positive integer.
tileLengthnumberYesYesHeight of each image tile.
The unit is px.
The value is a positive integer.
dateTimestringYesYesDate and time associated with an image (usually the last modification time).
makestringYesYesCapture device manufacturer.
photometricInterpretationnumberYesYesInterpretation mode of TIFF image pixel colors (such as RGB or grayscale).
The value is a positive integer.
whitePointnumber[]YesYesChromaticity coordinates of the reference white point.
documentNamestringYesYesDocument or image name.
imageDescriptionstringYesYesImage content description.
softwarestringYesYesSoftware used to create or process images.
xResolutionnumberYesYesHorizontal resolution (number of pixels per resolution unit).
yResolutionnumberYesYesVertical resolution (number of pixels per resolution unit).
hostComputerstringYesYesHost or system used for image processing.
transferFunctionstringYesYesTone transfer curve.
artiststringYesYesName of the image creator or artist.
orientationOrientationYesYesImage orientation.
modelstringYesYesCapture device model name or ID.
resolutionUnitnumberYesYesUnit of XResolution (horizontal resolution) and YResolution (vertical resolution). The value can be inch or centimeter.
The value is a positive integer.
compressionnumberYesYesCompression scheme used for TIFF image data.
- 1: no compression.
- 5: LZW (dictionary-based lossless compression algorithm)
- 7: JPEG baseline.
- 8: DEFLATE (lossless compression algorithm based on LZ77 and Huffman)
The value is a positive integer.
copyrightstringYesYesCopyright notice of the 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/ADlpiPV0