tahoma2d/toonz/sources/toonzlib/cleanupcommon.h
2016-06-15 15:43:10 +09:00

24 lines
474 B
C++

#pragma once
#ifndef CLEANUPCOMMON_INCLUDED
#define CLEANUPCOMMON_INCLUDED
#include "texception.h"
// unit conversion
inline double inToPixel(double val, double dpi) { return val * dpi; }
inline double mmToPixel(double val, double dpi) {
return (val * dpi) * (1.0 / 25.4);
}
class TCleanupException : public TException {
public:
TCleanupException(const char *msg) : TException(msg) {}
~TCleanupException() {}
};
#ifndef MAX_DOT
#define MAX_DOT 500
#endif
#endif