Skip to main content
All docs
V26.1
  • PictureFill Class

    A picture fill that uses an image as the fill pattern.

    Namespace: DevExpress.Docs.Office

    Assembly: DevExpress.Docs.Core.v26.1.dll

    Declaration

    public class PictureFill :
        Fill

    The following members return PictureFill objects:

    Remarks

    The following code snippet uses the PictureFill class to fill a slide background with an image:

    using DevExpress.Docs.Office;
    using DevExpress.Drawing;
    using System.Drawing;
    
        Slide slide = new Slide(new SlideLayout(layoutType: SlideLayoutType.Blank, name: "slide"));
        string imagePath = "D:\\image.png";
        Stream stream = new FileStream(imagePath, FileMode.Open, FileAccess.Read);
        PictureFill fill = new PictureFill(DXImage.FromStream(stream));
        fill.Stretch = true;
        slide.Background = new CustomSlideBackground(fill);
    

    For more information on how to customize the slide or shape fill, refer to the following help topics:

    Implements

    Inheritance

    See Also