Skip to main content

OH_PixelmapNative_GetImageInfo

Function OH_PixelmapNative_GetImageInfo 

Source
pub unsafe extern "C" fn OH_PixelmapNative_GetImageInfo(
    pixelmap: *mut OH_PixelmapNative,
    imageInfo: *mut OH_Pixelmap_ImageInfo,
) -> Image_ErrorCode
Expand description

@brief Obtains pixel map information of this image.

@param pixelmap The Pixelmap pointer will be operated. @param imageInfo Indicates the pointer to the image information. @return Function result code: {@link IMAGE_SUCCESS} - The operation is successful. {@link IMAGE_BAD_PARAMETER} - Parameter error.Possible causes: 1.pixelmap is nullptr. 2.pixelmap’s inner pixelmap is nullptr. 3.imageInfo is nullptr. @since 12