int iLookTable;
for (iLookTable = 0; iLookTable<NumberOfColorsHalf; iLookTable++)
{
- colorLookupTable->GetTableValue( iLookTable, rgba1);
- colorLookupTable->GetTableValue(NumberOfColors-1-iLookTable, rgba2);
- colorLookupTable->SetTableValue(NumberOfColors-1-iLookTable , rgba1[0],rgba1[1],rgba1[2],rgba1[3]);
- colorLookupTable->SetTableValue( iLookTable , rgba2[0],rgba2[1],rgba2[2],rgba2[3]);
+ colorLookupTable->GetTableValue( iLookTable, rgba1 );
+ colorLookupTable->GetTableValue(NumberOfColors-1-iLookTable, rgba2 );
+ colorLookupTable->SetTableValue(NumberOfColors-1-iLookTable, rgba1[0],rgba1[1],rgba1[2],rgba1[3] );
+ colorLookupTable->SetTableValue( iLookTable, rgba2[0],rgba2[1],rgba2[2],rgba2[3] );
} // for iLookTable
- double rgba[4];
- colorLookupTable->GetTableValue(0,rgba);
- rgba[3]=0;
- colorLookupTable->SetTableValue(0,rgba);
// Transparency
if (bbGetInputType()==0)
{
+ // First Element
+ double rgba[4];
+ colorLookupTable->GetTableValue(0,rgba);
+ rgba[3]=0;
+ colorLookupTable->SetTableValue(0,rgba);
+
+ // Middle range
int i,iMax=(NumberOfColors/16)*4;
for (i=0;i<iMax;i++)
{
// Transparency
if (bbGetInputType()==1)
{
+ // First Element
double rgba[4];
colorLookupTable->GetTableValue(0,rgba);
rgba[3]=0;