Searched refs:src_alpha (Results 1 – 2 of 2) sorted by relevance
618 const int src_alpha = gdTrueColorGetAlpha(src); in _color_blend() local620 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()
2944 int src_alpha = gdTrueColorGetAlpha(src); in gdAlphaBlend() local2951 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