Home
last modified time | relevance | path

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

/PHP-7.0/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.c2916 int src_alpha = gdTrueColorGetAlpha(src); in gdAlphaBlend() local
2923 if( src_alpha == gdAlphaOpaque ) in gdAlphaBlend()
2927 if( src_alpha == gdAlphaTransparent ) in gdAlphaBlend()
2937 src_weight = gdAlphaTransparent - src_alpha; in gdAlphaBlend()
2938 dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in gdAlphaBlend()
2944 alpha = src_alpha * dst_alpha / gdAlphaMax; in gdAlphaBlend()

Completed in 19 milliseconds