Skip to main content

OH_Drawing_CanvasDrawBitmap

Function OH_Drawing_CanvasDrawBitmap 

Source
pub unsafe extern "C" fn OH_Drawing_CanvasDrawBitmap(
    canvas: *mut OH_Drawing_Canvas,
    bitmap: *const OH_Drawing_Bitmap,
    left: f32,
    top: f32,
)
Expand description

@brief Draws a bitmap. A bitmap, also referred to as a dot matrix image, a pixel map image, or a grid image, includes single points called pixels (image elements). This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either canvas or bitmap is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param canvas Pointer to an OH_Drawing_Canvas object. @param bitmap Pointer to an OH_Drawing_Bitmap object. @param left X coordinate of the upper left corner of the bitmap. @param top Y coordinate of the upper left corner of the bitmap. @since 11 @version 1.0