class Vips::BlendMode
Blend mode to use when compositing images. See {Image#composite}.
-
β:clear` where the second object is drawn, the first is removed
-
β:source` the second object is drawn as if nothing were below
-
β:over` the image shows what you would expect if you held two
semi-transparent slides on top of each other
-
β:in` the first object is removed completely, the second is only
drawn where the first was
-
β:out` the second is drawn only where the first isnβt
-
β:atop` this leaves the first object mostly intact, but mixes both
objects in the overlapping area
-
β:dest` leaves the first object untouched, the second is discarded
completely -
β:dest_over` like `:over`, but swaps the arguments
-
β:dest_in` like `:in`, but swaps the arguments
-
β:dest_out` like `:out`, but swaps the arguments
-
β:dest_atop` like `:atop`, but swaps the arguments
-
β:xor` something like a difference operator
-
β:add` a bit like adding the two images
-
β:saturate` a bit like the darker of the two
-
β:multiply` at least as dark as the darker of the two inputs
-
β:screen` at least as light as the lighter of the inputs
-
β:overlay` multiplies or screens colors, depending on the lightness
-
β:darken` the darker of each component
-
β:lighten` the lighter of each component
-
β:colour_dodge` brighten first by a factor second
-
β:colour_burn` darken first by a factor of second
-
β:hard_light` multiply or screen, depending on lightness
-
β:soft_light` darken or lighten, depending on lightness
-
β:difference` difference of the two
-
β:exclusion` somewhat like `:difference`, but lower-contrast