Class (JfifMetadata)
JfifMetadata.
JFIF 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 |
|---|---|---|---|---|
| densityUnit | number | Yes | Yes | Physical unit of measurement for Xdensity (horizontal pixel density) and Ydensity (vertical pixel density). - 0: no units (pixel aspect ratio only) - 1: pixels per inch (DPI) - 2: pixels per centimeter (DPC) The value is a positive integer. |
| xDensity | number | Yes | Yes | Pixel density in the X direction of the JFIF image. The value is a positive integer. |
| yDensity | number | Yes | Yes | Pixel density in the Y direction of the JFIF image. The value is a positive integer. |
| isProgressive | boolean | Yes | Yes | Whether the image uses progressive encoding, that is, the image gradually improves in clarity through multiple scans during loading. The value true indicates yes, and the value false indicates no. |
| version | number[] | Yes | Yes | JFIF image version. |
你可能感兴趣的鸿蒙文章
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