Skip to main content

OH_PixelmapImageInfo_GetPixelFormat

Function OH_PixelmapImageInfo_GetPixelFormat 

Source
pub unsafe extern "C" fn OH_PixelmapImageInfo_GetPixelFormat(
    info: *mut OH_Pixelmap_ImageInfo,
    pixelFormat: *mut i32,
) -> Image_ErrorCode
Expand description

@brief Get pixelFormat number for imageinfo struct.

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