pub unsafe extern "C" fn OH_Drawing_BitmapReadPixels(
bitmap: *mut OH_Drawing_Bitmap,
dstInfo: *const OH_Drawing_Image_Info,
dstPixels: *mut c_void,
dstRowBytes: usize,
srcX: i32,
srcY: i32,
) -> boolExpand description
@brief Reads pixels of a rectangle in a bitmap to the specified buffer. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If any of bitmap, dstInfo, and dstPixels is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@param bitmap Pointer to the {@link OH_Drawing_Bitmap} object. @param dstInfo Pointer to an {@link OH_Drawing_Image_Info} object. @param dstPixels Pointer to the buffer for storing the pixels read. @param dstRowBytes Number of bytes in each row of the pixel data read. The value must be greater than or equal to the minimum number of bytes in each row in the OH_Drawing_Image_Info object. @param srcX Start X coordinate of the pixel data to read from the bitmap. The value must be less than the width of the bitmap. @param srcY Start Y coordinate of the pixel data to read from the bitmap. The value must be less than the height of the bitmap. @return Returns true if the pixels are read; returns false otherwise. @since 12 @version 1.0