本文整理汇总了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);
}
示例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);
}
}