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,
) -> Image_ErrorCode
Expand description

@brief Set pixelFormat number for OH_DecodingOptions struct.

@param options The OH_DecodingOptions pointer will be operated. @param pixelFormat the number of image pixelFormat. @return Returns one of the following result codes: {@link IMAGE_SUCCESS} if the execution is successful. {@link IMAGE_BAD_PARAMETER} options is nullptr. @since 12