Skip to main content

OH_Drawing_ShadowLayerCreate

Function OH_Drawing_ShadowLayerCreate 

Source
pub unsafe extern "C" fn OH_Drawing_ShadowLayerCreate(
    blurRadius: f32,
    x: f32,
    y: f32,
    color: u32,
) -> *mut OH_Drawing_ShadowLayer
Expand description

@brief Creates an OH_Drawing_ShadowLayer object. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If blurRadius is less than or equal to 0, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

@param blurRadius Radius of the shadow layer. The value must be greater than 0. @param x Offset on the X axis. @param y Offset on the Y axis. @param color Color of the shadow. @return Returns the pointer to the OH_Drawing_ShadowLayer object created. @since 12 @version 1.0