コードは前記事を参照お願いします。
function angle_draw2(){
var image_data = ctx.getImageData(0, 0, 256, 256);
ctx.rotate(30 * Math.PI / 180);
ctx.drawImage(img_truck, 0, 0, 200, 100);
// ctx.setTransform(1,0,0,1,0,0);
ctx.fillStyle = "silver";
ctx.fillRect(128, 128, 64, 64);
// ctx.putImageData(image_data, 0, 0);
}