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

/PHP_TRUNK/ext/gd/libgd/
H A Dgd.c2876 int src_alpha = gdTrueColorGetAlpha(src); local
2883 if( src_alpha == gdAlphaOpaque )
2887 if( src_alpha == gdAlphaTransparent )
2897 src_weight = gdAlphaTransparent - src_alpha;
2898 dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax;
2904 alpha = src_alpha * dst_alpha / gdAlphaMax;
H A Dgd_interpolation.c608 const int src_alpha = gdTrueColorGetAlpha(src); local
610 if( src_alpha == gdAlphaOpaque ) {
615 if( src_alpha == gdAlphaTransparent ) return dst;
620 const int src_weight = gdAlphaTransparent - src_alpha;
621 const int dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax;
624 alpha = src_alpha * dst_alpha / gdAlphaMax;

Completed in 12 milliseconds