microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.35k stars 302 forks source link

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

Closed Urielov closed 2 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