Function ohos_sys::drawing::bitmap::OH_Drawing_BitmapBuild

source ยท
pub unsafe extern "C" fn OH_Drawing_BitmapBuild(
    arg1: *mut OH_Drawing_Bitmap,
    width: u32,
    height: u32,
    arg2: *const OH_Drawing_BitmapFormat,
)
Available on crate feature drawing only.
Expand description

@brief Initializes the width and height of an OH_Drawing_Bitmap object and sets the pixel format for the bitmap.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param OH_Drawing_Bitmap Indicates the pointer to an OH_Drawing_Bitmap object. @param width Indicates the width of the bitmap to be initialized. @param height Indicates the height of the bitmap to be initialized. @param OH_Drawing_BitmapFormat Indicates the pixel format of the bitmap to be initialized, including the pixel color type and alpha type. @since 8 @version 1.0