-#include "except.h"
+#include <msp/strings/format.h>
#include "pixelformat.h"
using namespace std;
case Graphics::RGBA: return RGBA;
case Graphics::BGR: return BGR;
case Graphics::BGRA: return BGRA;
- default: throw InvalidParameterValue("Unknown Graphics::PixelFormat");
+ default: throw invalid_argument("pixelformat_from_graphics");
}
}