Skip to main content

OH_Drawing_CanvasDrawBitmapRect

Function OH_Drawing_CanvasDrawBitmapRect 

Source
pub unsafe extern "C" fn OH_Drawing_CanvasDrawBitmapRect(
    canvas: *mut OH_Drawing_Canvas,
    bitmap: *const OH_Drawing_Bitmap,
    src: *const OH_Drawing_Rect,
    dst: *const OH_Drawing_Rect,
    samplingOptions: *const OH_Drawing_SamplingOptions,
)
Expand description

@brief Draw the specified area of the bitmap to the specified area of the 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 src the area of source bitmap, can be nullptr. @param dst the area of destination canvas. @param samplingOptions the sampling mode. @since 12 @version 1.0