This article provides an example of how to create a new item description and add images to it, using IswDescriptionGenerator when doing an extension.


IswDescriptionGenerator generator = _host.NewDescriptionGenerator("Arial");
            generator.AddText("Hello");
            generator.AddTable(new string[] { "one", "two" }, new string[,] { { "00", "01" }, { "10", "11" } }, new int[] { 100, 200 });

            //            generator.AddPngImage(File.ReadAllBytes(@"C:\Windows\WinSxS\wow64_microsoft-windows-mediaplayer-core_31bf3856ad364e35_10.0.18362.1_none_e81bdd6d00b2ea70\DMR_48.png"));
            generator.AddText("Table BEGIN:");
            generator.BeginTable(3, 2);
            generator.GotoCell(1, 1);
            generator.AddText("Cell 11");
            generator.GotoCell(0, 1);
            generator.AddText("Cell 01");
            //            generator.AddPng(DecodeBase64(PICTURE_DATA_BASE64));
            generator.GotoCell(1, 0);
            generator.BeginTable(1, 1);
            generator.GotoCell(0, 0);
            generator.AddText("Table in table", "Bold");
            generator.EndTable();
            generator.EndTable();
            generator.AddText(":END");

            generator.BeginTable(5, 2);
            generator.SetColWidth(0, 100);
            generator.SetColWidth(1, 200);
            generator.SetTableHeaderColor("#AACCFF");
            generator.GotoCell(0, 0);
            generator.AddText("Cell 0, 0");
            generator.EndTable();
            generator.AddText("here comes a list:");

            generator.BeginList();
            generator.NewListItem();
            generator.AddText("First item");
            generator.NewListItem();
            generator.AddText("Second item");
            generator.EndList();

            _currentItem.Description = generator.GetDescription();