Error Image not copy to new node!


#1
I using Grahpnode and try to put a bitmap image to the node work weel, but when copied this node to new node the image node copy. Please help, what i'm wrong?

GraphNode gi = new GraphNode(GraphNodeKind.Action);
gi.Initialize(null, -1, “Select Language”);
gi.Image.Image = (Image)BitmapTools.LoadImageFromResourceManager(this.GetType(),“SelectLanguage.bmp”);
gi.Editable = false;
itm.Tag = gi;


#2

Make sure you pass the right ResourceManager along with the name (“SelectLanguage.bmp” in this case) as arguments to Initialize.


#3

How to make transparent picture in node. (i’m using ResourceManager)


#4

If the image supports transparency, it will be drawn that way.