this is code of rotate function we implemented in final project
code of transparency function used in photoshop