Class: Vips::BlendMode
- Inherits:
-
Symbol
- Object
- Symbol
- Vips::BlendMode
- Defined in:
- lib/vips/blend_mode.rb
Overview
Blend mode to use when compositing images. See Image#composite.
-
:clearwhere the second object is drawn, the first is removed -
:sourcethe second object is drawn as if nothing were below -
:overthe image shows what you would expect if you held two semi-transparent slides on top of each other -
:inthe first object is removed completely, the second is only drawn where the first was -
:outthe second is drawn only where the first isn't -
:atopthis leaves the first object mostly intact, but mixes both objects in the overlapping area -
:destleaves the first object untouched, the second is discarded completely -
:dest_overlike:over, but swaps the arguments -
:dest_inlike:in, but swaps the arguments -
:dest_outlike:out, but swaps the arguments -
:dest_atoplike:atop, but swaps the arguments -
:xorsomething like a difference operator -
:adda bit like adding the two images -
:saturatea bit like the darker of the two -
:multiplyat least as dark as the darker of the two inputs -
:screenat least as light as the lighter of the inputs -
:overlaymultiplies or screens colors, depending on the lightness -
:darkenthe darker of each component -
:lightenthe lighter of each component -
:colour_dodgebrighten first by a factor second -
:colour_burndarken first by a factor of second -
:hard_lightmultiply or screen, depending on lightness -
:soft_lightdarken or lighten, depending on lightness -
:differencedifference of the two -
:exclusionsomewhat like:difference, but lower-contrast