Home
last modified time | relevance | path

Searched refs:src_alpha (Results 1 – 2 of 2) sorted by relevance

/PHP-7.3/ext/gd/libgd/
H A Dgd_interpolation.c618 const int src_alpha = gdTrueColorGetAlpha(src); in _color_blend() local
620 if( src_alpha == gdAlphaOpaque ) { in _color_blend()
625 if( src_alpha == gdAlphaTransparent ) return dst; in _color_blend()
630 const int src_weight = gdAlphaTransparent - src_alpha; in _color_blend()
631 const int dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in _color_blend()
634 alpha = src_alpha * dst_alpha / gdAlphaMax; in _color_blend()
H A Dgd.c2944 int src_alpha = gdTrueColorGetAlpha(src); in gdAlphaBlend() local
2951 if( src_alpha == gdAlphaOpaque ) in gdAlphaBlend()
2955 if( src_alpha == gdAlphaTransparent ) in gdAlphaBlend()
2965 src_weight = gdAlphaTransparent - src_alpha; in gdAlphaBlend()
2966 dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in gdAlphaBlend()
2972 alpha = src_alpha * dst_alpha / gdAlphaMax; in gdAlphaBlend()

Completed in 18 milliseconds