示例#1
0
        public void DisplayText(TextLayer layerContent, int fadetime)
        {
            if (ProjectionWindows.Count > 0)
            {
                foreach (var pw in ProjectionWindows)
                {
                    Bitmap   bmp = new Bitmap(pw.Width, pw.Height);
                    Graphics gr  = Graphics.FromImage(bmp);
                    layerContent.WriteOut(gr);

                    pw.DisplayText(bmp, fadetime);

                    CurrentText = layerContent;
                }
                ProjectionChanged?.Invoke(this, new ProjectionChangedEventArgs {
                    Image = ProjectionWindows[0].GetPreviewImage()
                });
            }
        }
示例#2
0
 public void DisplayText(TextLayer layerContent)
 {
     DisplayText(layerContent, Settings.Default.ProjectionFadeTime);
 }