Change Border Size (Thickness) of vertex set as Image

Aug 5, 2014 at 5:29 AM

We are using NodeXLClassLibrary version ( in window based c# application.

We are setting some vertex as image using following code
  BitmapImage myBitmapImage = new BitmapImage();
                        myBitmapImage.CacheOption = BitmapCacheOption.OnLoad;
                        myBitmapImage.DecodePixelHeight = 32;
                        myBitmapImage.DecodePixelWidth = 32;
                        myBitmapImage.UriSource = new Uri(dicImgNode[ver.Name], UriKind.Absolute);
                        System.Windows.Media.ImageSource imgSource = myBitmapImage;
                        ver.SetValue(ReservedMetadataKeys.PerVertexShape, VertexShape.Image);
                        ver.SetValue(ReservedMetadataKeys.PerVertexImage, imgSource);
It renders the vertex as desired image.

Is there any way of customizing the border (Thickness or style) of this vertex ? By default it shows thin border around the image.
I have search over the help file but find no lead. Please suggest some wayaround to achieve this.
Aug 5, 2014 at 4:29 PM
Edited Aug 5, 2014 at 4:32 PM
You cannot change the thickness or style of image borders. You can change the border color by setting the ReservedMetadataKeys.PerColor key on the vertex. If you set the border color to the graph background color, the border won't be visible.

Because you are using a dead-end branch of the NodeXL Class Libraries that is no longer being developed (1,0.1.251), you might consider taking the source code for it ( ), building it, and customizing it any way you want. For example, changing the border thickness would involve using something other than the DefaultPenThickness value in the VertexDrawer.DrawImageShape() method, which you can see here:

-- Tony