AD
Administrator
Syncfusion Team
January 4, 2006 07:37 PM UTC
Hi Chris,
Thank you for bringing this problem to our attention. A fix has been added, and the next update of Essential Diagram will include a revised version of the BitmapTool class that inserts the correct image. For now, you can workaround the issue by examining the clipboard before calling the Diagram.InsertImage() method, and if the clipboard is found to contain a Bitmap object then replacing it with a non-Image object. The following code should give you an idea,
private void barItemImage_Click(object sender, System.EventArgs e)
{
IDataObject dataObj = Clipboard.GetDataObject();
if(dataObj != null && dataObj.GetDataPresent(typeof(System.Drawing.Bitmap)))
Clipboard.SetDataObject("Dummy Value");
this.diagramComponent.InsertImage();
}
Hope this helps.
Regards,
Prakash Surendra
Syncfusion Inc.,