pub unsafe extern "C" fn OH_PixelmapNative_Crop(
pixelmap: *mut OH_PixelmapNative,
region: *mut Image_Region,
) -> Image_ErrorCodeExpand description
@brief Crops this image based on the input size. It is recommended to use {@link OH_PixelmapNative_ApplyCrop}.
@param pixelmap The Pixelmap pointer will be operated. @param region Area size, read according to area. @return Function result code: {@link IMAGE_SUCCESS} - The operation is successful. {@link IMAGE_BAD_PARAMETER} - Parameter error.Possible causes: 1.pixelmap is nullptr. 2.region is nullptr. 3.pixelmap’s inner pixelmap is nullptr. @since 12