vg_lite_radial_gradient_t structure

This structure defines the application of the radial gradient to fill a path. (from November 2020, requires GC355 or GC555 hardware).

Used in radial gradient functions: vg_lite_draw_grad, vg_lite_set_radial_grad, vg_lite_update_radial_grad, vg_lite_get_radial_grad, vg_lite_clear_radial_grad.

vg_lite_radial_gradient_t member

Type

Description

count

vg_lite_uint32_t

Count of colors, up to 256

matrix

vg_lite_matrix_t

Structure that specifies the transform matrix for the gradient

image

vg_lite_buffer_t

Structure that specifies the image for rendering as a gradient pattern

radial_grad

vg_lite_radial_gradient_parameter_t

Structure that specifies the location of the gradient’s center point (cx, cy), focal point(fx, fy) and radius(r)

ramp_length

vg_lite_uint32_t

Color ramp parameters for gradient paints provided to the driver

color_ramp[VLC_MAX_COLOR_RAMP_STOPS]

vg_lite_color_ramp_t

Structure that specifies the color ramp

converted_length

vg_lite_uint32_t

Converted internal color ramp.

converted_ramp[VLC_MAX_COLOR_RAMP_STOPS+2]

vg_lite_color_ramp_t

Structure that specifies the internal color ramp

pre_multiplied

vg_lite_uint32_t

If this value is set to 1, the color value of color_ramp will be multiplied by the alpha value of color_ramp.

spread_mode

vg_lite_radial_gradient_spreadmode_t

Enum that specifies the tiling mode, which is applied to the pixels out of the image after transformation

Parent topic:Draw and gradient structures