1e41f4b71Sopenharmony_ci# OhosImageSource
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThe **OhosImageSource** struct defines the input resource of an image source. Only one type of resource is accepted at a time. The image source is obtained by calling [OH_ImageSource_Create](image.md#oh_imagesource_create).
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Multimedia.Image
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**Deprecated from**: 11
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Since**: 10
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Related module**: [Image](image.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## Summary
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci### Member Variables
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci| Name| Description| 
23e41f4b71Sopenharmony_ci| -------- | -------- |
24e41f4b71Sopenharmony_ci| char \* [uri](image.md#uri) = nullptr | Defines a pointer to the image source URI. Only a file URI or Base64 URI is accepted.| 
25e41f4b71Sopenharmony_ci| size_t [uriSize](image.md#urisize) = 0 | Defines the length of the image source URI.| 
26e41f4b71Sopenharmony_ci| int32_t [fd](image.md#fd) = -1 | Defines the descriptor of the image source.| 
27e41f4b71Sopenharmony_ci| uint8_t \* [buffer](image.md#buffer-12) = nullptr | Defines a pointer to the image source buffer. Only a formatted packet buffer or Base64 buffer is accepted.| 
28e41f4b71Sopenharmony_ci| size_t [bufferSize](image.md#buffersize-12) = 0 | Defines the size of the image source buffer.| 
29