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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using image/icon instead of using a graphical design symbol.

Thread ID:

Created:

Updated:

Platform:

Replies:

18219 Aug 26,2004 07:56 AM UTC Oct 26,2004 08:17 PM UTC WinForms 8
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On August 26, 2004 07:56 AM UTC

How can I define and insert a symbol that displays an image instead of a rectangle, circle or such ? Thanks

Administrator [Syncfusion]
Replied On August 26, 2004 10:52 AM UTC

Hi Rui Take a look at the DiagramBuilder sample where you can insert an image as a node. Essential Diagram includes support for MetafileNode and BitmapNode. Here is a sample demonstrating the the use of Custom Tools in a Essential Diagram Application. This sample demonstrates a custom Rectange Tool which inserts a rectangle with an image as the background or as a seperate node. Regards, Arun

Administrator [Syncfusion]
Replied On August 26, 2004 02:06 PM UTC

But when i insert a symbol instance of my class MySymbol in the diagram I just have to call this.insSymbolTool.Symbol = mysymbInst; this.diagram.Controller.ActivateTool(this.insSymbolTool); ...how can I make this with a BitmapNode ?? thank you >Hi Rui > >Take a look at the DiagramBuilder sample where you can insert an image as a node. Essential Diagram includes support for MetafileNode and BitmapNode. >Here is a sample demonstrating the the use of Custom Tools in a Essential Diagram Application. This sample demonstrates a custom Rectange Tool which inserts a rectangle with an image as the background or as a seperate node. > >Regards, >Arun

Administrator [Syncfusion]
Replied On August 26, 2004 05:18 PM UTC

Hi Rui, The DiagramBuilder sample shows how you can insert an Image node using the InsertImage method which activates either the BitmapTool or the MetafileTool, on the type of image passed in. Here is a samplein which you can drag and drop the image from the picturebox onto the diagram. The underlying code in the Diagram''s DragDrop event shows how a BitmapNode is added. The sample also demonstrates adding a node using the InsertImage() image method and pressing on the GetSelectedNode type button after selecting a node shows a MessageBox with the type of node that is currently selected. Regards, Arun

Administrator [Syncfusion]
Replied On September 2, 2004 10:01 PM UTC

Hello Arun, I have VB.NET and cannot work out how to translate this sample. Your assistance would be appreciated. Thank you, William >Hi Rui, > >The DiagramBuilder sample shows how you can insert an Image node using the InsertImage method which activates either the BitmapTool or the MetafileTool, on the type of image passed in. >Here is a samplein which you can drag and drop the image from the picturebox onto the diagram. The underlying code in the Diagram''s DragDrop event shows how a BitmapNode is added. > >The sample also demonstrates adding a node using the InsertImage() image method and pressing on the GetSelectedNode type button after selecting a node shows a MessageBox with the type of node that is currently selected. > >Regards, >Arun

Administrator [Syncfusion]
Replied On September 3, 2004 01:01 PM UTC

Hi William Here is the VB.NET version of the sample. Thanks Arun

Administrator [Syncfusion]
Replied On September 3, 2004 02:39 PM UTC

Arun, Thank you very much. Regards, William

Eric Silver
Replied On October 26, 2004 06:48 PM UTC

Ok here is something a little bit more complex. Can you add ports to this image. From what I can see there is no Ports collections to the custom rectangle object. >But when i insert a symbol instance of my class MySymbol in the diagram I just have to call >this.insSymbolTool.Symbol = mysymbInst; >this.diagram.Controller.ActivateTool(this.insSymbolTool); > >...how can I make this with a BitmapNode ?? >thank you > >>Hi Rui >> >>Take a look at the DiagramBuilder sample where you can insert an image as a node. Essential Diagram includes support for MetafileNode and BitmapNode. >>Here is a sample demonstrating the the use of Custom Tools in a Essential Diagram Application. This sample demonstrates a custom Rectange Tool which inserts a rectangle with an image as the background or as a seperate node. >> >>Regards, >>Arun

Administrator [Syncfusion]
Replied On October 26, 2004 08:17 PM UTC

Hi Eric I have replied to this post with a sample. Regards Arun

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;