当前位置: 首页>>代码示例>>C#>>正文


C# Layer.paintString方法代码示例

本文整理汇总了C#中Layer.paintString方法的典型用法代码示例。如果您正苦于以下问题:C# Layer.paintString方法的具体用法?C# Layer.paintString怎么用?C# Layer.paintString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Layer的用法示例。


在下文中一共展示了Layer.paintString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: showLegend

        public void showLegend(Canvas aCan, String fName)
        {
            // ------------------------------------------------------------
            if (FoilNr == 0) return;

            WERROR.writeLog(ClassName + ".showLegend");

            Canvas tmpCanvas = new Canvas();
            Layer tmpLayer = new Layer(Layers.Count, "text");
            tmpLayer.paintString(tmpCanvas, 18, 700, 18, fName);
            aCan.Children.Add(tmpCanvas);
        }
开发者ID:OpiWerner,项目名称:weView,代码行数:12,代码来源:Foil.cs

示例2: showCopyright

        public void showCopyright(Canvas aCan)
        {
            // ------------------------------------------------------------
            WERROR.writeLog(ClassName + ".showCopyright");

            Canvas crCanvas = new Canvas();
            Layer tmpLayer = new Layer(0, "text");
            tmpLayer.X1.From = 30;
            tmpLayer.Y1.From = 710;
            tmpLayer.FoilsFont.Size = 18;
            tmpLayer.FoilsFont.ForegroundColor = Brushes.Red.Color;
            tmpLayer.FoilsFont.BackgroundColor = Brushes.Transparent.Color;
            tmpLayer.BorderHeight.From = 24;
            String lines = "";
            //int nrLines = 0;
            String cText = "";
            String cMusic = "";
            String cRight = "";

            // Copyrighttext zusammenstellen
            if (WSGLOBAL.ActShow.Chapters.Count > 1 && ChapNr < WSGLOBAL.ActShow.Chapters.Count) {
                cText = WSGLOBAL.ActShow.Chapters[ChapNr].CrText;
                cRight = WSGLOBAL.ActShow.Chapters[ChapNr].Copyright;
                cMusic = WSGLOBAL.ActShow.Chapters[ChapNr].CrMusic;
            }

            if (cText == WCONST.UNKNOWN) cText = "";

            if (cText != "") {
                lines = "Text: " + cText;
                //nrLines = 1;
            }

            if (cMusic == WCONST.UNKNOWN) cMusic = "";

            if (cMusic != "") {
                if (cText != "") lines += " - Musik: " + cMusic;
                else lines = cMusic;
                //nrLines = 1;
            }

            if (cRight == WCONST.UNKNOWN) cRight = "";

            if (cRight != "") {

                if (lines.Length > 0) {
                    lines += WCONST.CRLF + cRight;
                    //nrLines = 2;
                }
                else lines = cRight;
            }

            if (lines.Length > 0) {
                tmpLayer.paintString(crCanvas, 18, 700, 18, lines);
                aCan.Children.Add(crCanvas);
            }
        }
开发者ID:OpiWerner,项目名称:weView,代码行数:57,代码来源:Foil.cs


注:本文中的Layer.paintString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。