Skip to main content
All docs
V25.2
  • FillOverlayEffect.BlendMode Property

    Gets or sets the blend mode for the fill overlay effect.

    Namespace: DevExpress.Docs.Presentation

    Assembly: DevExpress.Docs.Presentation.v25.2.dll

    NuGet Package: DevExpress.Docs.Presentation

    Declaration

    public BlendMode BlendMode { get; set; }

    Property Value

    Type Description
    BlendMode

    The blend mode for the fill overlay effect.

    Available values:

    Name Description
    Overlay

    Combines Multiply (on dark areas) and Screen (on light areas).

    Multiply

    Colors are multiplied together.

    Screen

    Results in a lighter color by inverting, multiplying, and inverting the colors again.

    Darken

    The mode that keeps the color channel’s darker values from the blending colors.

    Lighten

    The mode that keeps the color channel’s lighter values from the blending colors.

    Remarks

    The FillOverlayEffect class exposes properties that you can use to configure the fill overlay effect:

    The following code snippet applies a fill overlay effect to a shape:

    using DevExpress.Docs.Presentation;
    using System.Drawing;
    
    namespace PresentationApiSample;
    
    public class Program {
        public static void Main(string[] _) {
    
            Presentation presentation = new Presentation();
            presentation.Slides.Clear();
    
            Slide slide = new Slide(SlideLayoutType.Blank);
            presentation.Slides.Add(slide);
    
            Shape shape1 = new Shape(ShapeType.Rectangle);
            shape1.Outline = new OutlineStyle { Fill = new SolidFill(Color.RoyalBlue), Width = 8 };
            shape1.Fill = new SolidFill(Color.White);
            shape1.X = 30;
            shape1.Y = 30;
            shape1.Width = 300;
            shape1.Height = 300;
            slide.Shapes.Add(shape1);
    
            ShapeEffectProperties e_properties = new ShapeEffectProperties();
            e_properties.FillOverlay = new FillOverlayEffect {
                BlendMode = BlendMode.Lighten,
                Fill = new SolidFill(Color.Yellow)
            };
            shape1.Effects = e_properties;
        }
    }
    
    See Also