可逆圧縮の画像データを保存するタグ
例えば細かい模様等は JPEG だとぼやけて困る
(20) DefineBitsLossless
- フォーマットによってパレット形式とビットマップ形式がある
↓RGBの順で並ぶ
-----------------------------------------------------+
...|colormap_count| colormap | indices |
-----------------------------------------------------+
<-- 2 bytes -><-- colormap --><- width * height ->
count * 3
- format 5 (PNG のようなビットマップ形式)
↓XRGBの順で並ぶ (X は padding)
---------------------------+
...| bitmap |
---------------------------+
<- width * height * 4 ->
(36) DefineBitsLossless2
- DefineBitsLossless2 に透明度がついたもの。
↓ARGBの順で並ぶ
------------------------------------------------------+
...|colormap_count| colormap | indices |
------------------------------------------------------+
<-- 2 bytes -><-- colormap --><- width * height ->
count * 4
- format 5 (PNG のようなビットマップ形式)
↓ ← RGB の順で並ぶ
---------------------------+
...| bitmap |
---------------------------+
<- width * height * 4 ->