style.setProperty("rotation", String.valueOf(newAngle));
}
if (deltaDegrees != 0) {
// Compensate x/y position due to rotation
Matrix compMatrix = new Matrix();
compMatrix.rotate(-deltaDegrees, deltaX, deltaY);
deltaX = deltaX * compMatrix.get(0, 0) + deltaY * compMatrix.get(0, 1) + compMatrix.get(0, 2);
deltaY = deltaX * compMatrix.get(1, 0) + deltaY * compMatrix.get(1, 1) + compMatrix.get(1, 2);
}
String flip = "";