设置混合模式
混合模式指定了Quartz如何将绘图绘制到背景上。Quartz默认使用普通混合模式(normal blend mode),该模式使用如下公式来计算前景绘图与背景绘图如何混合:
result = (alpha * foreground) + (1 - alpha) *background
图片:Figure 3-14 The rectangles painted in the background.png
|
|
|
设置混合模式
混合模式指定了Quartz如何将绘图绘制到背景上。Quartz默认使用普通混合模式(normal blend mode),该模式使用如下公式来计算前景绘图与背景绘图如何混合:
result = (alpha * foreground) + (1 - alpha) *background
图片:Figure 3-14 The rectangles painted in the background.png
|
|
|