Skip to main content

ferroui_base/media/imaging/
bitmap_blending_mode.rs

1/// Controls the way bitmaps are drawn together.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3#[repr(u8)]
4pub enum BitmapBlendingMode {
5    #[default]
6    Unspecified = 0,
7    SourceOver = 1,
8    Source = 2,
9    Destination = 3,
10    DestinationOver = 4,
11    SourceIn = 5,
12    DestinationIn = 6,
13    SourceOut = 7,
14    DestinationOut = 8,
15    SourceAtop = 9,
16    DestinationAtop = 10,
17    Xor = 11,
18    Plus = 12,
19    Screen = 13,
20    Overlay = 14,
21    Darken = 15,
22    Lighten = 16,
23    ColorDodge = 17,
24    ColorBurn = 18,
25    HardLight = 19,
26    SoftLight = 20,
27    Difference = 21,
28    Exclusion = 22,
29    Multiply = 23,
30    Hue = 24,
31    Saturation = 25,
32    Color = 26,
33    Luminosity = 27,
34}