Skip to main content
All docs
V25.1
  • BrickGraphics.DrawImage(DXImage, RectangleF, BorderSide, Color) Method

    Adds a specific ImageBrick brick to a report.

    Namespace: DevExpress.XtraPrinting

    Assembly: DevExpress.Printing.v25.1.Core.dll

    NuGet Package: DevExpress.Printing.Core

    Declaration

    public ImageBrick DrawImage(
        DXImage image,
        RectangleF rect,
        BorderSide sides,
        Color backColor
    )

    Parameters

    Name Type Description
    image DXImage

    The image to draw within a specific brick.

    rect RectangleF

    The RectangleF structure that specifies the location and size of the current brick in measurement units, specified via the BrickGraphics.PageUnit property value.

    sides BorderSide

    Border settings for a specific ImageBrick.

    backColor Color

    The color to be displayed in the transparent image.

    Returns

    Type Description
    ImageBrick

    The ImageBrick added to a report.

    The following code snippets (auto-collected from DevExpress Examples) contain references to the DrawImage(DXImage, RectangleF, BorderSide, Color) method.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also