hi maruan managed to solved this.
took me a day to finally get it what i did is translate it via bbox.getHeight(), 0 transform rotate 270 degrees translate via -bbox.getHeight(), -bbox.getHeight() not sure though if the same will work for 90 and 180 degrees. will verify