// 生成と終了


        public 右サイドクリアパネル()
        {
            using var _ = new LogBlock(Log.現在のメソッド名);

            this.背景     = new 画像D2D(@"$(Images)\PlayStage\RightSideClearPanel.png");
            this.クリアパネル = new 描画可能画像(new Size2F(500, 990));      // this._背景.サイズはまだ設定されていない。
        }
Пример #2
0
        // 生成と終了


        public 左サイドクリアパネル()
        {
            using var _ = new LogBlock(Log.現在のメソッド名);

            this.背景     = new 画像D2D(@"$(Images)\PlayStage\LeftSideClearPanel.png");
            this.クリアパネル = new 描画可能画像(this.背景.サイズ);
        }
Пример #3
0
        public static 画像D2D?ノード画像を生成する(VariablePath?ノード画像ファイルの絶対パス)
        {
            if (ノード画像ファイルの絶対パス is null)
            {
                return(null);
            }

            try
            {
                var image = new 画像D2D(ノード画像ファイルの絶対パス.数なしパス);

                //Log.Info( $"ノード画像を生成しました。[{ノード画像ファイルの絶対パス.変数付きパス}]" );
                return(image);
            }
            catch (Exception e)
            {
                Log.ERROR($"ノード画像の生成に失敗しました。[{ノード画像ファイルの絶対パス.変数付きパス}][{Folder.絶対パスをフォルダ変数付き絶対パスに変換して返す( e.Message )}]");
                return(null);
            }
        }
 public Panel(VariablePath path)
 {
     this.画像の絶対パス = path;
     this.画像      = new 画像D2D(path);
 }