一直以来,看到别人对Canvas和Paint操作,都喜欢设置一个参数,但是我一直不理解,今天花点时间好好理解一下~ Canvas的drawColor()有2个方法,注意看注释,里面都提到了一个 porterduff : Canvas: /** * Fill the entire canvas' bitmap (re