public void ImportImage()
{
// get input file of type DWG
System.Windows.Forms.OpenFileDialog dbox = new System.Windows.Forms.OpenFileDialog();
dbox.CheckFileExists = true;
dbox.Multiselect = false;
dbox.AddExtension = true;
dbox.DefaultExt = "jpg";
dbox.Filter = "Image Files (*.jpg;*.png;*.bmp)|*.jpg;*.png;*.bmp";
dbox.Title = "Image file to import";
if (dbox.ShowDialog() == DialogResult.OK)
{
ImageImportOptions opts = new ImageImportOptions();
opts.Placement = BoxPlacement.BottomLeft;
Element newElement;
m_revitApp.ActiveUIDocument.Document.Import(dbox.FileName, opts, m_revitApp.ActiveUIDocument.ActiveView, out newElement);
}
}