pub unsafe extern "C" fn OH_Drawing_BitmapBuild(
bitmap: *mut OH_Drawing_Bitmap,
width: u32,
height: u32,
bitmapFormat: *const OH_Drawing_BitmapFormat,
)Expand description
@brief Initializes the width and height of a bitmap and sets the pixel format for the bitmap. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either bitmap or bitmapFormat is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@param bitmap Pointer to an OH_Drawing_Bitmap object. @param width Width of the bitmap to be initialized. @param height Height of the bitmap to be initialized. @param bitmapFormat Pointer to the pixel format of the bitmap to be initialized, including the pixel color type and alpha type. @since 8 @version 1.0