RETURN [
SELECT trans.orient
FROM
original => ImagerTransformation.Create[1, 0, trans.off.x, 0, 1, trans.off.y],
mirrorX => ImagerTransformation.Create[-1, 0, trans.off.x, 0, 1, trans.off.y],
rotate90 => ImagerTransformation.Create[0, -1, trans.off.x, 1, 0, trans.off.y],
rotate90X => ImagerTransformation.Create[0, 1, trans.off.x, 1, 0, trans.off.y],
rotate180 => ImagerTransformation.Create[-1, 0, trans.off.x, 0, -1, trans.off.y],
rotate180X => ImagerTransformation.Create[1, 0, trans.off.x, 0, -1, trans.off.y],
rotate270 => ImagerTransformation.Create[0, 1, trans.off.x, -1, 0, trans.off.y],
rotate270X => ImagerTransformation.Create[0, -1, trans.off.x, -1, 0, trans.off.y],
ENDCASE => ERROR
];