Skip to main content

OH_Drawing_CanvasDrawImageRect

Function OH_Drawing_CanvasDrawImageRect 

Source
pub unsafe extern "C" fn OH_Drawing_CanvasDrawImageRect(
    canvas: *mut OH_Drawing_Canvas,
    image: *mut OH_Drawing_Image,
    rect: *mut OH_Drawing_Rect,
    samplingOptions: *mut OH_Drawing_SamplingOptions,
)
Expand description

@brief Draws the specified source rectangle of the image onto the canvas, scaled and translated to the destination rectangle.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param canvas Indicates the pointer to an OH_Drawing_Canvas object. @param image Indicates the pointer to an OH_Drawing_Image object. @param rect Indicates the pointer to an OH_Drawing_Rect object. @param samplingOptions Indicates the pointer to an OH_Drawing_SamplingOptions object. @since 12 @version 1.0