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#でpgm画像をロードするにはどうすればよいですか?また、それをpgmファイルに変換するにはどうすればよいですか?
PGM ファイルを BMP ファイルに変換するコードを含むブログ エントリを見つけました。ページを読むにはGoogle翻訳を使用する必要がありましたが、記載されているコードは英語であり、見栄えがします. リンクは次のとおりです(翻訳を使用):
http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://kb.cnblogs.com/a/1266417/&ei=fkbmTYqRMoe4twfq_PDeCg&sa=X&oi=translate&ct=result&resnum=6&ved=0CFAQ7gEwBQ&prev=/search %3Fq%3Dc%2523%2Bconvert%2Bpgm%26hl%3Den%26prmd%3Divns
基本的に、このコードをコピーして貼り付けるだけです。メソッドは、BitmapToBitmap()呼び出したいものです。
BitmapToBitmap()