microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.36k stars 307 forks source link

How to paint one node with multiple colors in msagl #295

Closed Urielov closed 3 years ago

levnach commented 3 years ago

Can you please elaborate the question, maybe give an example of what your drawing of a node would look like?

Urielov commented 3 years ago

Hi. That its what i need,

quastion

Thank you very much.

levnach commented 3 years ago

I see. It can be achieved by overriding the default rendering of a node and using DrawingNode.DrawNodeDelegate. Please see how it is done in https://github.com/microsoft/automatic-graph-layout/tree/master/GraphLayout/Samples/NodesWithImages.

Urielov commented 3 years ago

It works! Thank you