Skip to main content

OH_Drawing_BitmapGetPixels

Function OH_Drawing_BitmapGetPixels 

Source
pub unsafe extern "C" fn OH_Drawing_BitmapGetPixels(
    bitmap: *mut OH_Drawing_Bitmap,
) -> *mut c_void
Expand description

@brief Obtains the pixel address of a bitmap. You can use this address to obtain the pixel data of the bitmap. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If bitmap is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param bitmap Pointer to an OH_Drawing_Bitmap object. @return Returns the pixel address. @since 8 @version 1.0