Exemple #1
0
 private Bitmap WriteBibleFade(BibleData bibleData, bool greenScreen, bool cornerbug)
 {
     if (string.IsNullOrEmpty(bibleData.BibleText))
     {
         return(CreateBibleInsert(bibleData, greenScreen, cornerbug));
     }
     return(CreateFullscreenBibleInsert(bibleData, greenScreen));
 }
Exemple #2
0
        private Bitmap CreateBibleInsert(BibleData bibleData, bool transparent = true, bool useCornerBug = false)
        {
            Bitmap image       = LoadFrame(transparent, useCornerBug);
            var    drawingTool = Graphics.FromImage(image);

            DrawRectangle(drawingTool, _positionData);

            drawingTool.DrawString(
                "Bibelwort",
                _positionData.FontTextTwoRowFirstLine,
                new SolidBrush(Color.Black), _positionData.TextTwoRowFirstLinePosition);

            drawingTool.DrawString(
                $"{bibleData.BibleBook} {bibleData.BibleChapter}, {bibleData.BibleVerse}",
                _positionData.FontTextTwoRowSecondLine,
                new SolidBrush(Color.Black), _positionData.TextTwoRowSecondLinePosition);

            DrawLogo(drawingTool, _positionData);

            return(image);
        }
Exemple #3
0
        private Bitmap CreateFullscreenBibleInsert(BibleData bibleData, bool transparent)
        {
            Bitmap image       = LoadFrame(transparent, false);
            var    drawingTool = Graphics.FromImage(image);

            DrawRectangle(drawingTool, _biblewordPositionData);
            DrawLogo(drawingTool, _biblewordPositionData);

            drawingTool.DrawString(
                "Bibelwort",
                _biblewordPositionData.FontTextHeadline,
                new SolidBrush(Color.Black), _biblewordPositionData.HeadlineTextFirstLine);

            drawingTool.DrawString(
                $"{bibleData.BibleBook} {bibleData.BibleChapter}, {bibleData.BibleVerse}",
                _biblewordPositionData.FontTextHeadline,
                new SolidBrush(Color.Black), _biblewordPositionData.HeadlineTextSecondLine);

            DrawBibleText(drawingTool, bibleData.BibleText);

            return(image);
        }