// Copyright (C) 1999-2018 // Smithsonian Astrophysical Observatory, Cambridge, MA, USA // For conditions of distribution and use, see copyright notice in "copyright" #include "colorscaletrue32.h" ColorScaleTrueColor32::ColorScaleTrueColor32(int s, Visual* visual, int msb) : ColorScale(s), TrueColor24(visual) { colors_ = new unsigned char[s*4]; // we need to check to byteswap when we have cross platforms if ((!msb && lsb()) || (msb && !lsb())) { for (int i=0; i