Searched refs:dst_weight (Results 1 – 2 of 2) sorted by relevance
644 const int dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in _color_blend() local645 const int tot_weight = src_weight + dst_weight; in _color_blend()650 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in _color_blend()652 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in _color_blend()654 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in _color_blend()
2939 int src_weight, dst_weight, tot_weight; in gdAlphaBlend() local2959 dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in gdAlphaBlend()2960 tot_weight = src_weight + dst_weight; in gdAlphaBlend()2968 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in gdAlphaBlend()2970 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in gdAlphaBlend()2972 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
Completed in 40 milliseconds