Skip to main content

OH_Drawing_SetTextShadow

Function OH_Drawing_SetTextShadow 

Source
pub unsafe extern "C" fn OH_Drawing_SetTextShadow(
    shadow: *mut OH_Drawing_TextShadow,
    color: u32,
    offset: *mut OH_Drawing_Point,
    blurRadius: f64,
)
Expand description

@brief Sets the parameters of the text shadow object.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param shadow Pointer to the text shadow object {@link OH_Drawing_TextShadow}, obtained by {@link OH_Drawing_CreateTextShadow}. @param color Color of the text shadow. For example, if the input parameter is 0xAABBCCDD, AA represents the alpha value, BB represents the red component, CC represents the green component, and DD represents the blue component. @param offset Pointer to the coordinate point object {@link OH_Drawing_Point}, which indicates the offset of the text shadow relative to the current text. @param blurRadius Blur radius. The value is a floating point number and has no unit. The value 0.0 means that there is no blur effect. @since 12 @version 1.0