C
<platforminterface/gradient.h> - Gradient handling
提供用于处理渐变的便捷函数。更多内容...
| Header: | #include <platforminterface/gradient.h> |
属于Qt Quick Ultralite平台API的一部分。
函数
(since Qt Quick Ultralite (Platform) 2.7) void | generateGradientColorTable(const Qul::PlatformInterface::GradientStops &gradientStops, float opacity, Qul::PlatformInterface::Rgba32 *colorTable, int size, bool premultipliedAlpha) |
函数文档
[since Qt Quick Ultralite (Platform) 2.7] void generateGradientColorTable(const Qul::PlatformInterface::GradientStops &gradientStops, float opacity, Qul::PlatformInterface::Rgba32 *colorTable, int size, bool premultipliedAlpha)
根据渐变停点生成渐变颜色表。
根据提供的gradientStops 和不透明度值opacity 生成渐变颜色表。
colorTable 参数指向颜色表,size 指定颜色表应包含多少个条目。
premultipliedAlpha 参数指定输出数据是否应预乘 alpha 值。
此函数首次出现在Qt Quick Ultralite (Platform) 2.7 中。
在某些 Qt 许可证下可用。
了解更多信息。