Skip to main content

OH_PixelmapInitializationOptions_SetSrcPixelFormat

Function OH_PixelmapInitializationOptions_SetSrcPixelFormat 

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

@brief Set pixelFormat number for InitializationOptions struct.

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