Skip to main content

OH_Drawing_CanvasReadPixelsToBitmap

Function OH_Drawing_CanvasReadPixelsToBitmap 

Source
pub unsafe extern "C" fn OH_Drawing_CanvasReadPixelsToBitmap(
    canvas: *mut OH_Drawing_Canvas,
    bitmap: *mut OH_Drawing_Bitmap,
    srcX: i32,
    srcY: i32,
) -> bool
Expand description

@brief Read pixels data to a bitmap from canvas.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param canvas Indicates the pointer to an OH_Drawing_Canvas object. @param bitmap Indicates the pointer to an OH_Drawing_Bitmap object. @param srcX offset into canvas writable pixels on x-axis. @param srcY offset into canvas writable pixels on y-axis. @return true if pixels are copied to dstBitmap. @since 12 @version 1.0