草庐IT

kCGBlendModeColorDodge

全部标签

ios - kCGBlendModeColorDodge的公式是什么

我在Quartz2D中使用“CGContextSetBlendMode”函数,但我不明白“kCGBlendModeColorDodge”常量的含义。kCGBlendModeColorDodge的公式是什么? 最佳答案 这是“颜色减淡”的公式://v1andv2aretheRGBApixelvaluesforthetwopixels//"ontopofeachother"beingblendedvoidsomeFunction(v1,v2){returnMath.min(v1+v2,255);}来源是这个页面:http://jswid