アイコンをBMPからPNGに変更
PNG アイコンの作成が難しそうです。
r10506 で対応しました。
icotool を使ってアイコンファイルを再作成してみました。
r10503 の teraterm\common\teraterm.ico 286550 byte を
icotool.exe -l teraterm.ico --icon --index=1 --width=32 --height=32 --bit-depth=4 --palette-size=16 --type=bmp --icon --index=2 --width=16 --height=16 --bit-depth=4 --palette-size=16 --type=bmp --icon --index=3 --width=256 --height=256 --bit-depth=32 --palette-size=0 --type=bmp --icon --index=4 --width=48 --height=48 --bit-depth=32 --palette-size=0 --type=bmp --icon --index=5 --width=32 --height=32 --bit-depth=32 --palette-size=0 --type=bmp --icon --index=6 --width=16 --height=16 --bit-depth=32 --palette-size=0 --type=bmp
手元で icotools -x したのち、
icotool -c teraterm_1_32x32x4.png teraterm_2_16x16x4.png -r teraterm_3_256x256x32.png teraterm_4_48x48x32.png teraterm_5_32x32x32.png teraterm_6_16x16x32.png > teraterm.ico(-r オプションとファイルの並び順が重要) teraterm.ico 27025 byte
icotool.exe -l teraterm.ico --icon --index=1 --width=32 --height=32 --bit-depth=4 --palette-size=16 --type=bmp --icon --index=2 --width=16 --height=16 --bit-depth=4 --palette-size=16 --type=bmp --icon --index=3 --width=256 --height=256 --bit-depth=32 --palette-size=0 --type=png --icon --index=4 --width=48 --height=48 --bit-depth=32 --palette-size=0 --type=bmp --icon --index=5 --width=32 --height=32 --bit-depth=32 --palette-size=0 --type=bmp --icon --index=6 --width=16 --height=16 --bit-depth=32 --palette-size=0 --type=bmp
ttermpro.exe のアイコンを見た感じ、うまくいっているように見えます。 作成したteraterm.icoを添付します。
確認ありがとうございます。この -r というオプションは man には見つからなかったんですが、存在するんですね。
4bit アイコンは編集ツール(Photoshop)の都合でこのような流れで作っています。
Photoshop がなく psd へのバックポートを考慮せずにアイコンを編集するには、
ため、4bit は bmp と png を両方コミットしています。
PNG マルチアイコンうまく作れたんですね。よかったです。
わかっていたことなんですが、VS2005でビルドするとエラーが出るようになりました。
今のところは置いておきましょう。
Trea Term 5 では Visual Studio 2019 以上を使うことになったので、PNGアイコンを使えるようになった。