Background for an image


#1

I am using GoIconicNode to display images, now I need to combine shape with it as its backgroud (color, border width, border color, shape all needs to be configurable). Does anyone know how to do it? Many thanks…


#2

You might want to implement this by having the Icon of the GoIconicNode be a GoGroup consisting of some GoShape and a GoImage. It would be easiest and cleanest to override GoIconicNode.CreateIcon to do this. Remember to make all of the objects, including the GoGroup, not Selectable.