diff --git a/LibImage/include/LibImage/Image.h b/LibImage/include/LibImage/Image.h index c972779dfa..418552036d 100644 --- a/LibImage/include/LibImage/Image.h +++ b/LibImage/include/LibImage/Image.h @@ -31,6 +31,11 @@ namespace LibImage .a = static_cast(a.a * a_mult + b.a * b_mult), }; } + + uint32_t as_rgba() const + { + return ((uint32_t)a << 24) | ((uint32_t)r << 16) | ((uint32_t)g << 8) | b; + } }; enum class ResizeAlgorithm