// Please use the following namespace
// using System.Windows.Forms;
// using System.Drawing;
// using GrapeCity.Win.Editors;
public void SetBackgroundImageSettings()
{
// Create an instance of a GcMask control.
GcMask gcMask1 = new GcMask();
// Sets the BackgroundImage property.
gcMask1.BackgroundImage = new Bitmap(@"C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg");
// Sets the BackgroundImageLayout property for displaying the Image to center.
gcMask1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports System.Drawing;
' Imports GrapeCity.Win.Editors;
Public Sub SetBackgroundImageSettings()
' Create an instance of a GcMask control.
Dim gcMask1 As New GcMask()
' Sets the BackgroundImage property.
gcMask1.BackgroundImage = New Bitmap("C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg")
' Sets the BackgroundImageLayout property for displaying the Image to center.
gcMask1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center
End Sub