Hi,
I'm just evaluating this library.
I want to create a PDF with path objects, but I'm not able set any color.
I'm converting a WPF Path (System.Media.Windows.geometry) with the PdfGeometryHelper.ConvertPathGeometry (Telerik example)) to a Telerik Path geometry:
var wpfWindpwsPath= Geometry.Parse("F1 M 7.5,11.500 L 21.500,11.500 L 21.500,15.500 L 7.500,15.500 L 7.500,11.500 Z");
var wpfWindpwsPathGeometry = wpfWindpwsPath.GetFlattenedPathGeometry();
var wpfTelerikPathGeometry = PdfGeometryHelper.ConvertPathGeometry(wpfWindpwsPathGeometry);
var block = addTableCell.Blocks.AddBlock();
Telerik.Windows.Documents.Fixed.Model.Graphics.Path path = new Telerik.Windows.Documents.Fixed.Model.Graphics.Path();
path.Fill = new RgbColor(156, 156, 155);
path.Geometry = wpfTelerikPathGeometry;
//not possible
block.InsertPath(path);
// this is possible, but color is black
block.InsertPath(path.Geometry);
How can I set a color?