void SetBackgroundImage( string image )
void SetBackgroundImage( Pixmap image )

book_4_sparkGenerated
code_blocksInput

Description

The SetBackgroundImage method sets the background image of the GraphicsView to the specified image file. This method allows you to customize the appearance of the graphics view by providing a path to an image file that will be used as the background.

Usage

To use the SetBackgroundImage method, you need to provide a valid file path to an image as a string. The image will be loaded and set as the background of the GraphicsView. Ensure that the file path is correct and the image format is supported.

Example

// Example of setting a background image for a GraphicsView
GraphicsView graphicsView = new GraphicsView();
string imagePath = "C:\\Images\\background.png";
graphicsView.SetBackgroundImage(imagePath);