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.
ファイル(拡張子なし)が有効な画像ファイルであるかどうかを判断する必要があるC#を使用して、Windowsで小さなプロジェクトに取り組んでいます。それを行うタスクを簡素化できるように、組み込みのライブラリ関数はありますか?
使用する
Image.FromFile(path);
pathのファイルが有効な画像でない場合にスローされます。
path