Skip to main content

OH_Drawing_PenSetColor

Function OH_Drawing_PenSetColor 

Source
pub unsafe extern "C" fn OH_Drawing_PenSetColor(
    pen: *mut OH_Drawing_Pen,
    color: u32,
)
Expand description

@brief Sets the color for a pen. The color is used by the pen to outline a shape.

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