Skip to main content

OH_Drawing_BrushSetColor

Function OH_Drawing_BrushSetColor 

Source
pub unsafe extern "C" fn OH_Drawing_BrushSetColor(
    brush: *mut OH_Drawing_Brush,
    color: u32,
)
Expand description

@brief Sets the color for a brush. The color will be used by the brush to fill in a shape.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param brush Indicates the pointer to an OH_Drawing_Brush object. @param color Indicates the color to set, which is a 32-bit (ARGB) variable. @since 8 @version 1.0