Skip to main content

OH_DecodingOptions_SetPixelFormat

Function OH_DecodingOptions_SetPixelFormat 

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

Set pixelFormat number for OH_DecodingOptions struct.

§Arguments

  • options - The OH_DecodingOptions pointer will be operated.

  • pixelFormat - the number of image pixelFormat.

§Returns

  • Returns [Image_ErrorCode]

Available since API-level: 12