Skip to main content
All docs
V25.2
  • PictureShape Class

    A shape that displays a picture.

    Namespace: DevExpress.Docs.Presentation

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

    NuGet Package: DevExpress.Docs.Presentation

    Declaration

    public sealed class PictureShape :
        FilledShape

    The following members return PictureShape objects:

    Remarks

    The following code snippet adds a PictureShape to a slide and sets its properties:

    PictureShape picture = new PictureShape();
    string imagePath = "D:\\AirbusA318.png";
    Stream stream = new FileStream(imagePath, FileMode.Open, FileAccess.Read);
    picture.Image = DXImage.FromStream(stream);
    picture.Width = 700;
    picture.Height = 500;
    picture.Outline = new LineStyle { Fill = new SolidFill(Color.DarkGreen), Width = 4 };
    slide.Shapes.Add(picture);
    

    For more information about shapes, refer to the following help topic: DevExpress Presentation API Library: Work with Shapes.

    Implements

    See Also