static LineStyles() { DefaultLineBorder = new BorderPattern() { Color = System.Drawing.Color.Black, }; DefaultLineFill = new FillPattern.None(); }
static RectStyles() { DefaultRectBorder = new BorderPattern() { Color = System.Drawing.Color.Black, }; DefaultRectFill = new FillPattern.Solid() { Color = System.Drawing.Color.White }; }
static HandleStyles() { DefaultHandleBorder = new BorderPattern() { Color = System.Drawing.Color.Black, }; DefaultHandleFill = new FillPattern.Solid() { Color = System.Drawing.Color.White }; }
/// <summary> /// 抽象图元基类构造函数 /// </summary> protected AbstractPrimitive() { UUID = Guid.NewGuid().ToString(); border = new BorderPattern(); border.PropertyChanged += PropertyChangedEvent; fillPattern = new FillPattern.None(); fillPattern.PropertyChanged += PropertyChangedEvent; PropertyChanged += PropertyChangedEvent; IsPropertyChanged = true; Layer = null; __messagePipe = new MessagePipe(this); }
static CircleStyles() { DefaultCircleBorder = new BorderPattern() { Color = System.Drawing.Color.Black, }; BoundsPatternBorder = new BorderPattern() { Color = System.Drawing.Color.Gray, DashStyle = System.Drawing.Drawing2D.DashStyle.Dash }; DefaultCircleFill = new FillPattern.Solid() { Color = System.Drawing.Color.White }; BoundsPatternFill = new FillPattern.None(); }
internal BarcodeArea ( BorderPattern StartBorder, BorderPattern StopBorder ) { // left border line of PDF 417 barcode excluding start border LeftCenterX = StartBorder.CenterX; LeftCenterY = StartBorder.CenterY; LeftDeltaX = StartBorder.DeltaX; LeftDeltaY = StartBorder.DeltaY; // right border line of PDF 417 barcode excluding stop border RightCenterX = StopBorder.CenterX; RightCenterY = StopBorder.CenterY; RightDeltaX = StopBorder.DeltaX; RightDeltaY = StopBorder.DeltaY; // average symbol width of start and stop borders AvgSymbolWidth = 0.5 * (StartBorder.AvgSymbolWidth + StopBorder.AvgSymbolWidth); MaxSymbolError = MAX_SYMBOL_ERROR * AvgSymbolWidth; return; }
private void ResetBorderPattern() { BorderPattern = null; }