• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Interface (Photo)
2<!--Kit: Camera Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @qano-->
5<!--SE: @leo_ysl-->
6<!--TSE: @xchaosioda-->
7
8> **NOTE**
9>
10> - The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
11> - The initial APIs of this interface are supported since API version 11.
12
13Photo defines a full-quality image object.
14
15## Modules to Import
16
17```ts
18import { camera } from '@kit.CameraKit';
19```
20
21## Properties
22
23**Atomic service API**: This API can be used in atomic services since API version 19.
24
25**System capability**: SystemCapability.Multimedia.Camera.Core
26
27| Name  | Type                           |     Mandatory    | Description      |
28| ------ | ----------------------------- | -------------- | ---------- |
29| main<sup>11+</sup> | [image.Image](../apis-image-kit/arkts-apis-image-Image.md) |        Yes      | Full-quality image.|
30
31## release<sup>11+</sup>
32
33release(): Promise\<void\>
34
35Releases output resources. This API uses a promise to return the result.
36
37**Atomic service API**: This API can be used in atomic services since API version 19.
38
39**System capability**: SystemCapability.Multimedia.Camera.Core
40
41**Return value**
42
43| Type           | Description                    |
44| -------------- | ----------------------- |
45| Promise\<void\> | Promise that returns no value.|
46
47**Example**
48
49```ts
50async function releasePhoto(photo: camera.Photo): Promise<void> {
51  await photo.release();
52}
53```
54