BackgroundBitmap

<< Click to Display Table of Contents >>

Navigation:  MyCAD > Properties >

BackgroundBitmap

public Bitmap BackgroundBitmap {get; set;}

 

value:        

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

 

Example:

 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