Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テキストを文字列に変換する簡単なプログラムを書いています。簡単な質問ですが、作成が完了したら、どうすれば画像を開くことができますか? プログラムにpictureBoxを入れたくありません。
PictureBox内のプロパティに物理的に格納することなく、アプリケーションにイメージをロードしたいということだと思います。これを行うには、Bitmap.FromFile などを使用できます。
var myBitmap = Bitmap.FromFile("c:\somefile.bmp");
これは、イメージを作成し、ファイル システム上のパスに保存していることを前提としています。