
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Rotate Image with Canvas HTML5 Element from Bottom Center Angle
Translate the image dimensions to 32, 120 −
context.translate(32, 120);
Now rotate the canvas −
context.rotate(90 * Math.PI/180);
Now draw the image −
context.drawImage(img, -32, -120, 64, 120);
Advertisements