C

<platforminterface/gradient.h> - Gradient handling

Provides gradient handling convenience functions. More...

Header: #include <platforminterface/gradient.h>

Functions

void generateGradientColorTable(const PlatformInterface::GradientStops &gradientStops, float opacity, PlatformInterface::Rgba32 *colorTable, int size, bool premultipliedAlpha)

Detailed Description

Classes

Function Documentation

[since Qt Quick Ultralite (Platform) 2.7] void generateGradientColorTable(const PlatformInterface::GradientStops &gradientStops, float opacity, PlatformInterface::Rgba32 *colorTable, int size, bool premultipliedAlpha)

Generates a gradient color table from gradient stops.

Generates a gradient color table based on the provided gradientStops and opacity value opacity.

The colorTable parameter points to the color table, and size specifies how many entries the color table should have.

The premultipliedAlpha parameter specifies whether the output data should have the alpha value premultiplied or not.

This function was introduced in Qt Quick Ultralite (Platform) 2.7.

Available under certain Qt licenses.
Find out more.