hi_line

Function

Defines the line drawing parameters.

Definition

typedef struct {
    hi_point start_point;
    hi_point end_point;
    hi_u32 thick;
    hi_u32 color;
} hi_line;

For details about basic data type hi_u32, see Basic Data Types.

Members

Member

Description

start_point

Coordinates of the start point. For details, see hi_point.

end_point

Coordinates of the end point. For details, see hi_point.

The coordinates of the end point must be different from those of the start point.

thick

Line thickness. The value must be 2-pixel aligned.

color

Line color value. The lower 24 bits are valid.