- if (iColor==0)
- {
- r1 = 0;
- g1 = 0;
- b1 = 0;
- } else {
- r1 = GetBaseColors((iColor-1)*3+0);
- g1 = GetBaseColors((iColor-1)*3+1);
- b1 = GetBaseColors((iColor-1)*3+2);
- } // if iColor == 0
-
- r2 = GetBaseColors(iColor*3+0);
- g2 = GetBaseColors(iColor*3+1);
- b2 = GetBaseColors(iColor*3+2);
- start = 1000*(GetGreyLevelBoundaries(iColor)-minRange) / (maxRange-minRange);
- end = 1000*(GetGreyLevelBoundaries(iColor+1)-minRange) / (maxRange-minRange);
- FillColorTable(start,end, r1,g1,b1,r2,g2,b2);
+ r1 = GetBaseColors( (iColor+0)*3+0 );
+ g1 = GetBaseColors( (iColor+0)*3+1 );
+ b1 = GetBaseColors( (iColor+0)*3+2 );
+ r2 = GetBaseColors( (iColor+1)*3+0);
+ g2 = GetBaseColors( (iColor+1)*3+1);
+ b2 = GetBaseColors( (iColor+1)*3+2);
+ start = GrayLevel_TO_colorTableIndex( GetGreyLevelBoundaries(iColor) );
+ end = GrayLevel_TO_colorTableIndex( GetGreyLevelBoundaries(iColor+1) );
+ t1 = _transparence_level_boundary[iColor];
+ t2 = _transparence_level_boundary[iColor+1];
+printf("EED ColorLayerImageView::ConfigLookupTable Make something with transparence \n");
+ FillColorTable( start,end, r1,g1,b1, r2,g2,b2, t1,t2 );