- Timestamp:
- Oct 29, 2002, 12:38:28 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piimage.cc
r2168 r2235 513 513 unsigned int k = 0; 514 514 int ndec = opt.size(); 515 bool fgcmapid=false, revcmapid=false; CMapId cmapid=CMAP_COLRJ32; 515 516 for( k=0; k<opt.size(); k++ ) { 516 517 string opts = opt[k]; … … 526 527 continue; 527 528 } 529 // Reverse table de couleur 530 if (opts == "revcmap") { 531 revcmapid = true; 532 continue; 533 } 528 534 // Table de couleur 529 535 bool fgcmap = false; … … 533 539 colname[jll] = tolower(colname[jll]); 534 540 if (opts == colname) { 535 SetColMapId(PIColorMap::GetStandardColorMapId(kcc), false);536 fgcmap = true;541 fgcmapid = fgcmap = true; 542 cmapid = PIColorMap::GetStandardColorMapId(kcc); 537 543 break; 538 544 } 539 545 } 540 546 if (fgcmap) continue; 541 542 547 // Position du centre d'image 543 548 if (opts.substr(0,12) == "imagecenter=") { … … 566 571 if (rmdecopt) udopt.push_back(opts); 567 572 } 573 // Set color map if requested 574 if(fgcmapid || revcmapid) SetColMapId(cmapid,revcmapid,false); 568 575 569 576 if (rmdecopt) opt = udopt;
Note:
See TracChangeset
for help on using the changeset viewer.