コード例 #1
0
ファイル: DoubleBar.cs プロジェクト: Nodgez/PDFReporter
 public DoubleBar(Parameter parameterLeft, Parameter parameterRight, XGraphics gfx)
 {
     this.parameterLeft = parameterLeft;
     this.parameterRight = parameterRight;
     this.gfx = gfx;
 }
コード例 #2
0
ファイル: OHS_Page.cs プロジェクト: Nodgez/PDFReporter
 void DrawPentaInfoBox(XGraphics gfx, XPoint point, XImage img, Parameter parameter)
 {
     double wRatio = (double)img.PixelWidth / (double)img.PixelHeight;
     double val = parameter.Value;
     string str = parameter.Name;
     XBrush brush = DrawingUtil.Instance.ChooseBrushColor(parameter.Color);
     XSize ellipseSize = new XSize(10, 10);
     DrawingUtil.DrawOutlineRect(new XRect(point.X, point.Y + 10, 55, 30), gfx, ellipseSize);
     gfx.DrawRoundedRectangle(brush, new XRect(point.X, point.Y + 10, 55, 30), ellipseSize);
     gfx.DrawString(str, arialSmall, XBrushes.Black, point + new XPoint(0,60));
     gfx.DrawString(val.ToString() + " " + parameter.UnitOfMeasure, arialSmall,
         XBrushes.Black, new XPoint(point.X + 25,point.Y + 25),XStringFormats.Center);
     gfx.DrawImage(img, new XRect(point + new XPoint(60,0), new XSize(wRatio * 50, 50)));
 }