|
tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
|
8-bit RGBA color (premultiplied alpha). Internal pixel format.
#include <tiny_skia/Color.h>

Public Member Functions | |
| ColorU8 | demultiply () const |
| Converts to straight alpha. | |
Static Public Member Functions | |
| static std::optional< PremultipliedColorU8 > | fromRgba (AlphaU8 red, AlphaU8 green, AlphaU8 blue, AlphaU8 alpha) |
| Creates from components. Returns nullopt if any channel > alpha. | |
| static constexpr PremultipliedColorU8 | fromRgbaUnchecked (AlphaU8 red, AlphaU8 green, AlphaU8 blue, AlphaU8 alpha) |
| Creates from components without validation. | |