Skip to main content

OH_Drawing_BitmapGetAlphaFormat

Function OH_Drawing_BitmapGetAlphaFormat 

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

@brief Obtains the alpha component of a 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 alpha component. For details about the supported formats, see {@link OH_Drawing_AlphaFormat}. @since 12 @version 1.0