We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Customizing the BitmapTool to create BitmapNode from the selected region instead of browsing the image location with the help of OpenDialogBox

In Diagram control, we can create the image node using bitmap tool but we don’t have a built-in option for selecting the particular region and create the image node based on selected region. However we can achieve the desired requirement by customizing the Syncfusion.Windows.Forms.Diagram.BitmapTool and by creating the Bitmapnode from the selected region instead of browsing the image location with the help of OpenDialogBox

 

Step1:

The following code example shows creating the custom bitmaptool and setting the name for customized bitmaptool while initializing.

[C#]

 

[VB]

 

Step 2:

To override the CreateNode() method in customized bitmaptool to create the bitmapnode from the selected region

The following code example to create the bitmapnode from the selected region:

[C#]

 

[VB]

 

Sample:

Sample

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7405 02/09/2017 02/09/2017 WinForms Diagram
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon