Example #1
0
 public void BeginCappedLine(LineCapStyles startCap, Graphics.Size startSize, LineCapStyles endCap, Graphics.Size endSize,
                             SolidColor color, double width)
 {
     capLinePen = new Pen(new SolidColorBrush(color), width);
     capLinePen.StartLineCap = PlatformUtility.ToWPFLineCap(startCap);
     capLinePen.EndLineCap   = PlatformUtility.ToWPFLineCap(endCap);
 }
Example #2
0
 public Graphics.Size MeasureText(string text, string fontName, double fontSize, Graphics.Size displayArea)
 {
     // in WPF environment do not measure text, use FormattedText instead
     return(new Graphics.Size(0, 0));
 }