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 Copies a rect of pixels from bitmap to dstPixels. Copy starts at (srcX, srcY), and does not exceed bitmap width and height.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param bitmap Indicates the pointer to an OH_Drawing_Bitmap object. @param dstInfo Indicates the pointer to an OH_Drawing_Image_Info object. @param dstPixels Destination pixel storage. @param dstRowBytes Destination row length. @param srcX Column index whose absolute value is less than width. @param srcY Row index whose absolute value is less than height. @return Returns true if pixels are copied to dstPixels. @since 12 @version 1.0