mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
apis: promotes to official apis.
C++ - GlCanvas::gen() CAPI - TVG_COMPOSITE_METHOD_INVERSE_LUMA_MASK
This commit is contained in:
parent
119ca34219
commit
b6597fc1ef
2 changed files with 4 additions and 4 deletions
|
@ -161,7 +161,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.
|
||||
InvLumaMask, ///< Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the complement to the compositing target's pixels. @since 0.11
|
||||
AddMask, ///< Combines the target and source objects pixels using target alpha. (T * TA) + (S * (255 - TA)) (Experimental API)
|
||||
SubtractMask, ///< Subtracts the source color from the target color while considering their respective target alpha. (T * TA) - (S * (255 - TA)) (Experimental 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)) (Experimental API)
|
||||
|
@ -1645,7 +1645,7 @@ public:
|
|||
*
|
||||
* @warning Please do not use it. This class is not fully supported yet.
|
||||
*
|
||||
* @note Experimental API
|
||||
* @since 0.14
|
||||
*/
|
||||
class TVG_API GlCanvas final : public Canvas
|
||||
{
|
||||
|
@ -1678,7 +1678,7 @@ public:
|
|||
*
|
||||
* @return A new GlCanvas object.
|
||||
*
|
||||
* @note Experimental API
|
||||
* @since 0.14
|
||||
*/
|
||||
static std::unique_ptr<GlCanvas> gen() noexcept;
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ typedef enum {
|
|||
TVG_COMPOSITE_METHOD_ALPHA_MASK, ///< The pixels of the source and the target are alpha blended. As a result, only the part of the source, which intersects with the target is visible.
|
||||
TVG_COMPOSITE_METHOD_INVERSE_ALPHA_MASK, ///< The pixels of the source and the complement to the target's pixels are alpha blended. As a result, only the part of the source which is not covered by the target is visible.
|
||||
TVG_COMPOSITE_METHOD_LUMA_MASK, ///< The source pixels are converted to grayscale (luma value) and alpha blended with the target. As a result, only the part of the source which intersects with the target is visible. \since 0.9
|
||||
TVG_COMPOSITE_METHOD_INVERSE_LUMA_MASK ///< The source pixels are converted to grayscale (luma value) and complement to the target's pixels are alpha blended. As a result, only the part of the source which is not covered by the target is visible. \note Experimental API
|
||||
TVG_COMPOSITE_METHOD_INVERSE_LUMA_MASK ///< The source pixels are converted to grayscale (luma value) and complement to the target's pixels are alpha blended. As a result, only the part of the source which is not covered by the target is visible. \since 0.14
|
||||
} Tvg_Composite_Method;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue