pub unsafe extern "C" fn OH_Drawing_ImageBuildFromBitmap(
image: *mut OH_Drawing_Image,
bitmap: *mut OH_Drawing_Bitmap,
) -> boolExpand description
@brief Builds an image from a bitmap by sharing or copying bitmap pixels. If the bitmap is marked as immutable, the pixel memory is shared, not copied. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either image or bitmap is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@param image Pointer to the {@link OH_Drawing_Image} object. @param bitmap Pointer to the {@link OH_Drawing_Bitmap} object. @return Returns true if the image is built; returns false otherwise. @since 12 @version 1.0