Ejemplo n.º 1
0
        public override string GenerateNameBySettings()
        {
            string colorStr;

            GetKnownColor(LineColor.ToArgb(), out colorStr);
            return(string.Format("Узкий диапазон [{0}]", colorStr));
        }
Ejemplo n.º 2
0
        public void make(ref PageArrayBin pageArrayBin, ref SVSerialize serialize)
        {
            UInt32 pageNum = pageArrayBin.pageCount;
            UInt32 lineNum = pageArrayBin.pageArray[pageNum].lineNum++;

            if (pageArrayBin.pageArray[pageNum].m_line == null)
            {
                pageArrayBin.pageArray[pageNum].m_line = new LineBin[SVLimit.PAGE_LINE_MAXNUM];
            }

            LineBin lineBtn = pageArrayBin.pageArray[pageNum].m_line[lineNum];

            lineBtn.id    = ID;
            lineBtn.color = (UInt32)LineColor.ToArgb();
            lineBtn.width = LineWidth;

            ///起始坐标
            lineBtn.x1 = (UInt16)_startPos.X;
            lineBtn.y1 = (UInt16)_startPos.Y;

            ///结束坐标
            if (ShowType)
            {
                lineBtn.x2 = (UInt16)(lineBtn.x1 + LineLength - 1);
                lineBtn.y2 = lineBtn.y1;
            }
            else
            {
                lineBtn.x2 = lineBtn.x1;
                lineBtn.y2 = (UInt16)(lineBtn.y1 + LineLength - 1);
            }

            pageArrayBin.pageArray[pageNum].m_line[lineNum] = lineBtn;
        }