private byte processPxl(Octree tree, Color32* pxl, int maxColors) { byte idx = (byte)maxColors; if (pxl->Alpha > 0) idx = (byte)tree.paletteIndex(pxl); return idx; }