1# OhosImageSource
2
3
4## Overview
5
6The **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).
7
8**System capability**: SystemCapability.Multimedia.Image
9
10**Deprecated from**: 11
11
12**Since**: 10
13
14**Related module**: [Image](image.md)
15
16
17## Summary
18
19
20### Member Variables
21
22| Name| Description|
23| -------- | -------- |
24| char \* [uri](image.md#uri) = nullptr | Defines a pointer to the image source URI. Only a file URI or Base64 URI is accepted.|
25| size_t [uriSize](image.md#urisize) = 0 | Defines the length of the image source URI.|
26| int32_t [fd](image.md#fd) = -1 | Defines the descriptor of the image source.|
27| 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.|
28| size_t [bufferSize](image.md#buffersize-12) = 0 | Defines the size of the image source buffer.|
29