private void t説明文パネルに現在選択されている項目の説明を描画する()
        {
            try
            {
                var image    = new Bitmap(440, 288);                            // 説明文領域サイズの縦横 2 倍。(描画時に 0.5 倍で表示する___のは中止。処理速度向上のため。)
                var graphics = Graphics.FromImage(image);
                graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
                graphics.PixelOffsetMode   = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;

                CItemBase item = this.actList.ib現在の選択項目;
                if ((item.str説明文 != null) && (item.str説明文.Length > 0))
                {
                    graphics.DrawString(item.str説明文, this.ftフォント, Brushes.White, new RectangleF(8f, 0, 630, 430));
                }
                graphics.Dispose();
                if (this.tx説明文パネル != null)
                {
                    this.tx説明文パネル.Dispose();
                }
                this.tx説明文パネル = new CTexture(TJAPlayer3.app.Device, image, TJAPlayer3.TextureFormat);
                image.Dispose();
            }
            catch (CTextureCreateFailedException e)
            {
                Trace.TraceError(e.ToString());
                Trace.TraceError("説明文パネルテクスチャの作成に失敗しました。");
                this.tx説明文パネル = null;
            }
        }
Beispiel #2
0
 private void t説明文パネルに現在選択されている項目の説明を描画する()
 {
     try
     {
         CItemBase item = this.actList.ib現在の選択項目;
         if (this.tx説明文パネル != null)
         {
             this.tx説明文パネル.Dispose();
         }
         this.tx説明文パネル = TJAPlayer3.tCreateTexture(privatefont.DrawPrivateFont(item.strDescription, Color.White), true);
     }
     catch (CTextureCreateFailedException e)
     {
         Trace.TraceError(e.ToString());
         Trace.TraceError("説明文パネルテクスチャの作成に失敗しました。");
         this.tx説明文パネル = null;
     }
 }