BackgroundBitmap

Top  Previous  Next

public Bitmap BackgroundBitmap {get; set;}

 

value:        

 Set the background bitmap for MyCAD, And clear it,Set the BackgroundBitmap = null;

 

 

 openFileDialog1.InitialDirectory = Application.ExecutablePath;

 openFileDialog1.Filter = "BMP(*.bmp)|*.bmp|JPEG(*.jpg;*.jpe;*.jpeg)|*.jpg;*.jpe;*.jpeg|All files(*.*)|*.*";

 if (openFileDialog1.ShowDialog() == DialogResult.OK)

 {

         Bitmap myBitmap = new Bitmap(openFileDialog1.FileName);

         myCAD1.BackgroundBitmap = myBitmap;

 }

 

See also:

 BackgroundBitmapMode