Lines Matching refs:gdAlphaMax
2593 alpha_factor = ((gdAlphaMax - gdTrueColorGetAlpha(p))) * pcontribution; in gdImageCopyResampled()
2628 alpha = alpha >= gdAlphaMax+0.5 ? gdAlphaMax : alpha+0.5; in gdImageCopyResampled()
2959 dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in gdAlphaBlend()
2965 alpha = src_alpha * dst_alpha / gdAlphaMax; in gdAlphaBlend()
2994 a1 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerOverlay()
2995 a2 = gdAlphaMax - gdTrueColorGetAlpha(src); in gdLayerOverlay()
2996 return ( ((gdAlphaMax - a1*a2/gdAlphaMax) << 24) + in gdLayerOverlay()
3027 a1 = gdAlphaMax - gdTrueColorGetAlpha(src); in gdLayerMultiply()
3028 a2 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerMultiply()
3030 r1 = gdRedMax - (a1 * (gdRedMax - gdTrueColorGetRed(src))) / gdAlphaMax; in gdLayerMultiply()
3031 r2 = gdRedMax - (a2 * (gdRedMax - gdTrueColorGetRed(dst))) / gdAlphaMax; in gdLayerMultiply()
3032 g1 = gdGreenMax - (a1 * (gdGreenMax - gdTrueColorGetGreen(src))) / gdAlphaMax; in gdLayerMultiply()
3033 g2 = gdGreenMax - (a2 * (gdGreenMax - gdTrueColorGetGreen(dst))) / gdAlphaMax; in gdLayerMultiply()
3034 b1 = gdBlueMax - (a1 * (gdBlueMax - gdTrueColorGetBlue(src))) / gdAlphaMax; in gdLayerMultiply()
3035 b2 = gdBlueMax - (a2 * (gdBlueMax - gdTrueColorGetBlue(dst))) / gdAlphaMax ; in gdLayerMultiply()
3037 a1 = gdAlphaMax - a1; in gdLayerMultiply()
3038 a2 = gdAlphaMax - a2; in gdLayerMultiply()
3039 return ( ((a1*a2/gdAlphaMax) << 24) + in gdLayerMultiply()