Beispiel #1
0
        private void JPGGenerator()
        {
            ListService service = new ListService(new Reader_HSK());

            var includedWords = service.GetAllWords(1);

            List <Word> arrayIncluded = ToList(includedWords);

            int index = 1;

            foreach (Word_HSK w in arrayIncluded.OrderBy(x => x.NumberPinyin))

            {
                //FANGSONG
                //	KAITI
                //	SIMHEI
                //DengXian

                string sIndex = NumeroCuadrado(index, 3);

                BitmapService.GenerateBitmapfromFontChar(w.Character, "FangSong", FontStyle.Regular, sIndex);
                BitmapService.GenerateBitmapfromFontChar(w.Character, "Kaiti", FontStyle.Regular, sIndex);

                index++;
            }
        }