Skip to main content

OH_DecodingOptions_SetIndex

Function OH_DecodingOptions_SetIndex 

Source
pub unsafe extern "C" fn OH_DecodingOptions_SetIndex(
    options: *mut OH_DecodingOptions,
    index: u32,
) -> ImageResult
Available on crate features api-12 and image-source only.
Expand description

Set index number for OH_DecodingOptions struct.

§Arguments

  • options - The OH_DecodingOptions pointer will be operated.

  • index - the number of image index.

§Returns

  • Returns [Image_ErrorCode]

Available since API-level: 12