Skip to main content

OH_PixelmapInitializationOptions_SetPixelFormat

Function OH_PixelmapInitializationOptions_SetPixelFormat 

Source
pub unsafe extern "C" fn OH_PixelmapInitializationOptions_SetPixelFormat(
    options: *mut OH_Pixelmap_InitializationOptions,
    pixelFormat: i32,
) -> Image_ErrorCode
Expand description

@brief Set pixelFormat number for InitializationOptions struct.

@param options The InitializationOptions pointer will be operated. @param pixelFormat the number of image pixelFormat. @return Function result code: {@link IMAGE_SUCCESS} - if the operation is successful. {@link IMAGE_BAD_PARAMETER} - if options is null. @since 12