Skip to main content

OH_Drawing_CanvasDrawPixelMapRect

Function OH_Drawing_CanvasDrawPixelMapRect 

Source
pub unsafe extern "C" fn OH_Drawing_CanvasDrawPixelMapRect(
    canvas: *mut OH_Drawing_Canvas,
    pixelMap: *mut OH_Drawing_PixelMap,
    src: *const OH_Drawing_Rect,
    dst: *const OH_Drawing_Rect,
    samplingOptions: *const OH_Drawing_SamplingOptions,
)
Expand description

@brief Draw the specified area of the Media::PixelMap to the specified area of the canvas.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param canvas Indicates the pointer to an OH_Drawing_Canvas object. @param pixelMap Indicates the pointer to an OH_Drawing_PixelMap object. @param src the area of source pixelmap. @param dst the area of destination canvas. @param samplingOptions the sampling mode. @since 12 @version 1.0