add divide, linear-dodge and linear-burn blending modes (needs testing)

This commit is contained in:
artemp 2014-08-04 12:33:37 +01:00
parent 9f05389754
commit c1c5421fb6
4 changed files with 2975 additions and 2845 deletions

File diff suppressed because it is too large Load diff

View file

@ -74,7 +74,10 @@ enum composite_mode_e
hue,
saturation,
_color,
_value
_value,
linear_dodge,
linear_burn,
divide
};
MAPNIK_DECL boost::optional<composite_mode_e> comp_op_from_string(std::string const& name);

View file

@ -179,6 +179,9 @@ void cairo_context::set_operator(composite_mode_e comp_op)
case saturation:
case _color:
case _value:
case linear_dodge:
case linear_burn:
case divide:
//case colorize_alpha:
break;
}

View file

@ -75,6 +75,9 @@ static const comp_op_lookup_type comp_lookup = boost::assign::list_of<comp_op_lo
(saturation,"saturation")
(_color,"color")
(_value,"value")
(linear_dodge,"linear-dodge")
(linear_burn,"linear-burn")
(divide,"divide")
;
boost::optional<composite_mode_e> comp_op_from_string(std::string const& name)