mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
apis: promote beta apis to the official ones.
- enum class CompositeMethod::InvLumaMask; - template<typename T> std::unique_ptr<T> cast(Paint* paint); - template<typename T> std::unique_ptr<T> cast(Fill* fill); @Issue: https://github.com/thorvg/thorvg/issues/1669
This commit is contained in:
parent
44d0f98274
commit
0f5f43db1e
1 changed files with 3 additions and 5 deletions
|
@ -171,7 +171,7 @@ enum class CompositeMethod
|
|||
AlphaMask, ///< Alpha Masking using the compositing target's pixels as an alpha value.
|
||||
InvAlphaMask, ///< Alpha Masking using the complement to the compositing target's pixels as an alpha value.
|
||||
LumaMask, ///< Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the compositing target's pixels. @since 0.9
|
||||
InvLumaMask, ///< Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the complement to the compositing target's pixels. @BETA_API
|
||||
InvLumaMask, ///< Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the complement to the compositing target's pixels.
|
||||
AddMask, ///< Combines the target and source objects pixels using target alpha. (T * TA) + (S * (255 - TA)) @BETA_API
|
||||
SubtractMask, ///< Subtracts the source color from the target color while considering their respective target alpha. (T * TA) - (S * (255 - TA)) @BETA_API
|
||||
IntersectMask, ///< Computes the result by taking the minimum value between the target alpha and the source alpha and multiplies it with the target color. (T * min(TA, SA)) @BETA_API
|
||||
|
@ -1855,8 +1855,7 @@ public:
|
|||
|
||||
/**
|
||||
* @brief The cast() function is a utility function used to cast a 'Paint' to type 'T'.
|
||||
*
|
||||
* @BETA_API
|
||||
* @since 0.11
|
||||
*/
|
||||
template<typename T>
|
||||
std::unique_ptr<T> cast(Paint* paint)
|
||||
|
@ -1867,8 +1866,7 @@ std::unique_ptr<T> cast(Paint* paint)
|
|||
|
||||
/**
|
||||
* @brief The cast() function is a utility function used to cast a 'Fill' to type 'T'.
|
||||
*
|
||||
* @BETA_API
|
||||
* @since 0.11
|
||||
*/
|
||||
template<typename T>
|
||||
std::unique_ptr<T> cast(Fill* fill)
|
||||
|
|
Loading…
Add table
Reference in a new issue