Searched refs:src_alpha (Results 1 – 2 of 2) sorted by relevance
630 const int src_alpha = gdTrueColorGetAlpha(src); in _color_blend() local632 if( src_alpha == gdAlphaOpaque ) { in _color_blend()637 if( src_alpha == gdAlphaTransparent ) return dst; in _color_blend()642 const int src_weight = gdAlphaTransparent - src_alpha; in _color_blend()643 const int dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in _color_blend()646 alpha = src_alpha * dst_alpha / gdAlphaMax; in _color_blend()
2937 int src_alpha = gdTrueColorGetAlpha(src); in gdAlphaBlend() local2944 if( src_alpha == gdAlphaOpaque ) in gdAlphaBlend()2948 if( src_alpha == gdAlphaTransparent ) in gdAlphaBlend()2958 src_weight = gdAlphaTransparent - src_alpha; in gdAlphaBlend()2959 dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in gdAlphaBlend()2965 alpha = src_alpha * dst_alpha / gdAlphaMax; in gdAlphaBlend()
Completed in 59 milliseconds