I am trying to understand how to use images that may not be in the resource manager. Ultimately I hope to be able to store the images in a database or a directory so that my users can can create palettes containing images of their making.
I have an image in the called “XpLady.gif” in the solution root folder and have tried various ways of using the image in a goIconicNode with no success:
GoIconicNode sn2 = new GoIconicNode();
sn2.Initialize(null, “XpLady.gif”, “Worker1”);
I have also set the resource manager to null:
GoImage.DefaultResourceManager = null;
The reference manual says:
- Provides the
Imageresource named by iconname. If this parameter is null, DefaultResourceManager is used instead.
- The name of the
Imageresource in the
ResourceManagergiven by res, or else a file name if no resource manager can be used (i.e., when both res is null and DefaultResourceManager is null).
- The initial string value for the Label. If this value is null, no label is created for this node.
img.Name = "XpLady.gif";
img.Size = new SizeF(264, 336);
doc.Add(img); It adds a big empty image place holder. Thanks for your help, Mark