• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_ImageReceiverOptions
2
3## Overview
4
5The OH_ImageReceiverOptions struct describes the data type name of the image receiver options.
6
7OH_ImageReceiverOptions is the image receiver option setter struct encapsulated at the native layer. It is used to pass parameters during the creation of an OH_ImageReceiverNative object. The struct cannot be directly operated. Instead, functions must be called to create and release the struct and operate the fields in the struct.
8
9To create an OH_ImageReceiverOptions object, call [OH_ImageReceiverOptions_Create](capi-image-receiver-native-h.md#oh_imagereceiveroptions_create).
10
11To release an OH_ImageReceiverOptions object, call [OH_ImageReceiverOptions_Release](capi-image-receiver-native-h.md#oh_imagereceiveroptions_release).
12
13The table below describes the content and operation mode of the OH_ImageReceiverOptions struct.
14
15| Field Type| Field Name| Field Description|Operation Function| Function Description|
16| -------- | -------- | -------- | -------- | -------- |
17| Image_Size | size | Image size.| [OH_ImageReceiverOptions_GetSize](capi-image-receiver-native-h.md#oh_imagereceiveroptions_getsize) |Obtains the image size of an OH_ImageReceiverOptions object.|
18| Image_Size | size | Image size.| [OH_ImageReceiverOptions_SetSize](capi-image-receiver-native-h.md#oh_imagereceiveroptions_setsize) |Sets the image size for an OH_ImageReceiverOptions object.|
19| int32_t | capacity | Capacity of the image buffer.| [OH_ImageReceiverOptions_GetCapacity](capi-image-receiver-native-h.md#oh_imagereceiveroptions_getcapacity) |Obtains the capacity of an OH_ImageReceiverOptions object.|
20| int32_t | capacity | Capacity of the image buffer.| [OH_ImageReceiverOptions_SetCapacity](capi-image-receiver-native-h.md#oh_imagereceiveroptions_setcapacity) |Sets the capacity for an OH_ImageReceiverOptions object.|
21
22**Since**: 12
23
24**Related module**: [Image_NativeModule](capi-image-nativemodule.md)
25
26**Header file**: [image_receiver_native.h](capi-image-receiver-native-h.md)
27