Ejemplo n.º 1
0
        static LineStyles()
        {
            DefaultLineBorder = new BorderPattern()
            {
                Color = System.Drawing.Color.Black,
            };

            DefaultLineFill = new FillPattern.None();
        }
Ejemplo n.º 2
0
        static RectStyles()
        {
            DefaultRectBorder = new BorderPattern()
            {
                Color = System.Drawing.Color.Black,
            };

            DefaultRectFill = new FillPattern.Solid()
            {
                Color = System.Drawing.Color.White
            };
        }
Ejemplo n.º 3
0
        static HandleStyles()
        {
            DefaultHandleBorder = new BorderPattern()
            {
                Color = System.Drawing.Color.Black,
            };

            DefaultHandleFill = new FillPattern.Solid()
            {
                Color = System.Drawing.Color.White
            };
        }
Ejemplo n.º 4
0
        /// <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);
        }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 7
0
 private void ResetBorderPattern()
 {
     BorderPattern = null;
 }