チェンジセット 51
- コミット日時:
- 2007/08/26 19:38:35 (6 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
munegon/as3/src/com/voidelement/images/BMPDecoder.as
r50 r51 86 86 87 87 /** 88 * コンストラクタ88 * �R���X�g���N�^ 89 89 */ 90 90 public function BMPDecoder() { … … 96 96 97 97 /** 98 * デコード98 * �f�R�[�h 99 99 * 100 * @param デコードしたいBMPファイルのバイナリデータ100 * @param �f�R�[�h������BMP�t�@�C���̃o�C�i���f�[�^ 101 101 */ 102 102 public function decode( data:ByteArray ):BitmapData { … … 166 166 167 167 /** 168 * BITMAP FILE HEADER 読み込み168 * BITMAP FILE HEADER �ǂݍ��� 169 169 */ 170 170 private function readFileHeader():void { … … 190 190 191 191 /** 192 * BITMAP CORE HEADER 読み込み192 * BITMAP CORE HEADER �ǂݍ��� 193 193 */ 194 194 private function readCoreHeader():void { … … 210 210 211 211 /** 212 * BITMAP INFO HEADER 読み込み212 * BITMAP INFO HEADER �ǂݍ��� 213 213 */ 214 214 private function readInfoHeader():void { … … 236 236 237 237 /** 238 * 拡張 BITMAP INFO HEADER 読み込み238 * �g�� BITMAP INFO HEADER �ǂݍ��� 239 239 */ 240 240 private function readExtendedInfoHeader():void { … … 267 267 268 268 /** 269 * ビットフィールド読み込み269 * �r�b�g�t�B�[���h�ǂݍ��� 270 270 */ 271 271 private function readBitFields():void { … … 295 295 296 296 /** 297 * カラーパレット読み込み297 * �J���[�p���b�g�ǂݍ��� 298 298 */ 299 299 private function readColorPalette():void { … … 309 309 310 310 /** 311 * 1bit のBMPデコード311 * 1bit��MP�f�R�[�h 312 312 */ 313 313 private function decode1BitBMP():void { … … 343 343 344 344 /** 345 * 4bit のRLE圧縮BMPデコード345 * 4bit��LE���kBMP�f�R�[�h 346 346 */ 347 347 private function decode4bitRLE():void { … … 362 362 363 363 if ( n > 0 ){ 364 // エンコードデータ364 // �G���R�[�h�f�[�^ 365 365 data = bytes.readUnsignedByte(); 366 366 for ( i = 0; i < n/2; ++i ){ … … 371 371 372 372 if ( n > 0 ){ 373 // 絶対モードデータ373 // �����[�h�f�[�^ 374 374 bytes.readBytes( buf, buf.length, n/2 ); 375 375 buf.position += n/2; … … 401 401 402 402 /** 403 * 4bit の非圧縮BMPデコード403 * 4bit�̔kBMP�f�R�[�h 404 404 */ 405 405 private function decode4BitBMP():void { … … 434 434 435 435 /** 436 * 8bit のRLE圧縮BMPデコード436 * 8bit��LE���kBMP�f�R�[�h 437 437 */ 438 438 private function decode8BitRLE():void { … … 453 453 454 454 if ( n > 0 ){ 455 // エンコードデータ455 // �G���R�[�h�f�[�^ 456 456 data = bytes.readUnsignedByte(); 457 457 for ( i = 0; i < n; ++i ){ … … 462 462 463 463 if ( n > 0 ){ 464 // 絶対モードデータ464 // �����[�h�f�[�^ 465 465 bytes.readBytes( buf, buf.length, n ); 466 466 buf.position += n; … … 487 487 488 488 /** 489 * 8bit の非圧縮BMPデコード489 * 8bit�̔kBMP�f�R�[�h 490 490 */ 491 491 private function decode8BitBMP():void { … … 516 516 517 517 /** 518 * 16bit のBMPデコード518 * 16bit��MP�f�R�[�h 519 519 */ 520 520 private function decode16BitBMP():void { … … 536 536 537 537 /** 538 * 24bit のBMPデコード538 * 24bit��MP�f�R�[�h 539 539 */ 540 540 private function decode24BitBMP():void { … … 564 564 565 565 /** 566 * 32bit のBMPデコード566 * 32bit��MP�f�R�[�h 567 567 */ 568 568 private function decode32BitBMP():void { … … 585 585 586 586 /** 587 * カラーマスクチェック587 * �J���[�}�X�N�`�F�b�N 588 588 */ 589 589 private function checkColorMask():void { … … 609 609 610 610 /** 611 * 情報出力611 * ���o�� 612 612 */ 613 613 public function traceInfo():void {

