アイコンファイルに含まれる画像の色数とサイズ

T (Tera Term)

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
teraterm\common\teraterm.ico TTERM (default) BMP BMP BMP BMP BMP BMP
teraterm\common\teraterm_classic.ico TTERM_CLASSIC BMP BMP - - - -
teraterm\common\teraterm_3d.ico TTERM_3D BMP BMP BMP BMP BMP BMP
teraterm\common\teraterm_flat.ico TTERM_FLAT BMP BMP BMP BMP BMP BMP

VT (VT Window)

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
teraterm\common\vt.ico VT (default) BMP BMP BMP BMP BMP BMP
teraterm\common\vt_classic.ico VT_CLASSIC BMP BMP - - - -
teraterm\common\vt_3d.ico VT_3D BMP BMP BMP BMP BMP BMP
teraterm\common\vt_flat.ico VT_FLAT BMP BMP BMP BMP BMP BMP

TEK (TEK Windows)

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
teraterm\common\tek.ico TEK BMP BMP - - - -

M (Macro)

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
teraterm\ttpmacro\ttmacro.ico - BMP BMP BMP BMP BMP BMP
teraterm\ttpmacro\ttmacro_3d.ico - BMP BMP BMP BMP BMP BMP
teraterm\ttpmacro\ttmacro_flat.ico - BMP BMP BMP BMP BMP BMP

MF (Macro File)

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
teraterm\ttpmacro\ttmacrof.ico - BMP BMP BMP BMP BMP BMP

keycode

icon file icon name 4bit 48px 4bit 32px 4bit 16px
teraterm\keycode\keycode.ico - BMP BMP BMP

TTSSH

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
teraterm\ttpmacro\ttsecure.ico flat2 (default) BMP BMP BMP BMP BMP BMP
teraterm\ttpmacro\ttsecure_classic.ico classic BMP BMP - - - -
teraterm\ttpmacro\ttsecure_yellow.ico yellow BMP BMP BMP BMP BMP BMP
teraterm\ttpmacro\ttsecure_green.ico green BMP BMP BMP BMP BMP BMP
teraterm\ttpmacro\ttsecure_flat.ico flat BMP BMP BMP BMP BMP BMP

TeraTerm Menu

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
ttpmenu\teraterm.ico - BMP BMP - BMP BMP BMP

Cygterm+

icon file icon name 4bit 32px 4bit 16px 32bit 256px 32bit 48px 32bit 32px 32bit 16px
cygwin\cygterm\cygterm.ico CYGTERM BMP BMP - BMP BMP BMP

4bit アイコン

  • Windows NT 4.0 は 4bit アイコンしかサポートしていないため、これがないとたいそう見栄えが悪い
  • 4bit アイコンに使える色は以下のとおり
    #000000(0,0,0)
    #800000(128,0,0)
    #ff0000(255,0,0)
    #ff00ff(255,0,255)
    #008080(0,128,128)
    #008000(0,128,0)
    #00ff00(0,255,0)
    #00ffff(0,255,255)
    #000080(0,0,128)
    #800080(128,0,128)
    #0000ff(0,0,255)
    #c0c0c0(192,192,192)
    #808080(128,128,128)
    #808000(128,128,0)
    #ffff00(255,255,0)
    #ffffff255,255,255

cf. http://www.infotart.com/blog/2008/06/22/windows-4-bit-color-palette/

アイコンファイルについて

  • アイコンはビットマップ形式とpng形式でデータを格納できる
  • アイコンファイル内の格納順は「ビット数小さい順・サイズ大きい順」とする
    • LoadImage() でサイズを指定せずアイコンを読み込んだとき、先に格納されている画像が取り出されるため(逆順にしていると、大きいサイズが欲しくても16pxが取り出されてしまう)
  • Tera Termではすべてビットマップ形式で格納している
    • 1アイコンにつき 280KB ほどとなる
    • Visual Studio 2005 でビルドできるようにするため
  • png 形式のアイコンにするとファイルサイズを節約できる
    • 1アイコンにつき 25-50KB ほどとなる
    • png 形式のアイコンの表示をサポートしているのは Windows Vista 以降だが、48x48 までのアイコンがビットマップ形式で格納されていれば Windows XP 以前でも問題なく表示される
    • png 形式のアイコンのコンパイルに対応しているのは Visual Studio 2008 以降
      • ReplaceVistaIcon を使えば、コンパイル済み exe, dll のアイコンをあとから差し替えることができるらしい
      • icotool でico→png、png→icoという処理ができる
        • linux ではicoutils パッケージ、cygwinでは icoutils パッケージに入っている

アイコンデザインについての資料

表示されるアイコン

システム(OS)で使用されるアイコン

システムで利用されるアイコンは大と小の2つをセットすることができる

  • 大きなアイコン(拡大率100%時32×32pixel , WM_SETICON + ICON_BIGでセットする)
    • タスクバーのアイコン(デフォルト)
    • タスクの切り替え(Alt + Tab)でのアイコン
    • タスクビュー(Windows ロゴ キー + Tab)でのアイコン
  • 小さなアイコン(拡大率100%時16×16pixel, WM_SETICON + ICON_SMALLでセットする)
    • アプリのウィンドウのタイトルバーのアイコン
    • タスクバーのアイコン(小さいタスクバーボタンを使う on 時)
    • 通知領域のアイコン

通知領域(タスクトレイ)

  • Shell_NotifyIcon()

アプリケーションで表示されるアイコン

exeファイルから画像を取り出していると思われる

  • タスクマネージャ
  • エクスプローラー
  • など...