コード例 #1
0
        private void ProcessColor(object colorObj, StoppedDouble opacityObj, bool isCasing)
        {
            if (isCasing && Outline == null)
            {
                Outline = new Stroke();
            }

            string color = Helper.ProcessColor(colorObj, opacityObj);

            if (isCasing)
            {
                Outline.Color = color;
            }
            else
            {
                Color = color;
            }
        }
コード例 #2
0
        private void ProcessWidth(StoppedDouble lineWidth, bool isCasing)
        {
            if (isCasing && Outline == null)
            {
                Outline = new Stroke();
            }

            string width = Helper.ProcessWidth(lineWidth, isCasing);

            if (isCasing)
            {
                if (Outline.Width == null)
                {
                    Outline.Width = width;
                }
            }
            else if (Width == null)
            {
                Width = width;
            }
        }