public static void RenderShapeImage(string dataDir, Shape shape)
{
// ExStart:RenderShapeImage
dataDir = dataDir + "TestFile.RenderShape_out.jpg";
// Save the Shape image to disk in JPEG format and using default options.
shape.GetShapeRenderer().Save(dataDir, null);
// ExEnd:RenderShapeImage
Console.WriteLine("\nShape image rendered successfully.\nFile saved at " + dataDir);
}
/// <summary>