mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
capi: Add two additional ColorSpace options to align with C++ APIs.
APIs: - Tvg_Colorspace::TVG_COLORSPACE_ABGR8888S - Tvg_Colorspace::TVG_COLORSPACE_ARGB8888S Issue: https://github.com/thorvg/thorvg/issues/2053
This commit is contained in:
parent
5d10e514d7
commit
3c5e9e1e7c
1 changed files with 4 additions and 2 deletions
|
@ -398,8 +398,10 @@ typedef enum {
|
|||
* \brief Enumeration specifying the methods of combining the 8-bit color channels into 32-bit color.
|
||||
*/
|
||||
typedef enum {
|
||||
TVG_COLORSPACE_ABGR8888 = 0, ///< The 8-bit color channels are combined into 32-bit color in the order: alpha, blue, green, red.
|
||||
TVG_COLORSPACE_ARGB8888 ///< The 8-bit color channels are combined into 32-bit color in the order: alpha, red, green, blue.
|
||||
TVG_COLORSPACE_ABGR8888 = 0, ///< The channels are joined in the order: alpha, blue, green, red. Colors are alpha-premultiplied. (a << 24 | b << 16 | g << 8 | r)
|
||||
TVG_COLORSPACE_ARGB8888, ///< The channels are joined in the order: alpha, red, green, blue. Colors are alpha-premultiplied. (a << 24 | r << 16 | g << 8 | b)
|
||||
TVG_COLORSPACE_ABGR8888S, ///< The channels are joined in the order: alpha, blue, green, red. Colors are un-alpha-premultiplied. @since 0.13
|
||||
TVG_COLORSPACE_ARGB8888S ///< The channels are joined in the order: alpha, red, green, blue. Colors are un-alpha-premultiplied. @since 0.13
|
||||
} Tvg_Colorspace;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue