public double RealInverseTransformY(int oldx, int oldy) {
	double x = (oldx - orgx) / scale;
	double y = (oldy - orgy) / scale;
	switch (rot) {
	default:
	case 0:	y = y; break;
	case 1:	y = -x; break;
	case 2:	y = -y; break;
	case 3:	y = x; break;
	case 4:	y = y; break;
	case 5:	y = -x; break;
	case 6:	y = -y; break;
	case 7:	y = x; break;
	}
	return y;
    }