# include "Ximage.h"

void Remap (Graphic *graphic, KapaImageWidget *image, Matrix *matrix) {

  switch (graphic[0].Nbits) {
  case 8:
    Remap8 (graphic, image, matrix);
    break;
  case 16:
    Remap16 (graphic, image, matrix);
    break;
  case 24:
    Remap24 (graphic, image, matrix);
    break;
  case 32:
    Remap32 (graphic, image, matrix);
    break;
  }

}

