/    Sign up×
Community /Pin to ProfileBookmark

rotate an image by 35 degrees

is it possile to rotate an image by a certain angle around a specific point.

i.e. rotate a face by 35 degrees around the coordinates (x,y). i can do it in java using affineTransform but i cant find a method in HTML/javascript.

any ideas anyone??????

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@balloonbuffoonJan 08.2006 — Its not possible with plain ol' javascript.
Copy linkTweet thisAlerts:
@cyber1Jan 08.2006 — Like this?

[URL=http://www.walterzorn.com/rotate_img/rotate_img.htm]http://www.walterzorn.com/rotate_img/rotate_img.htm[/URL]

-Bill
Copy linkTweet thisAlerts:
@balloonbuffoonJan 09.2006 — Hmm...that's pretty cool! I was actually thinking of that as a possiblity, using divs and just display one pixel at a time, but boy it sure is inefficient! And the quality is pretty awful, too.
Copy linkTweet thisAlerts:
@spidermanbcvauthorJan 09.2006 — i tried the method outlined in the walter zorn page but kept getting an error on the pages sayings:-

rots is undefined


anybody else get this error. also, how can force that particular page to open in full window mode (i,e, without all the buttons, links, url text box........etc at the top)?????

how can i also invoke a sound file to play as part of another function????
Copy linkTweet thisAlerts:
@cyber1Jan 10.2006 — I haven't used it other then playing with it on that page.

Googling the suject brings up a lot of interesting results.

[URL=http://www.google.com/search?q=%22rotate+image%22javascript]rotate image[/URL]

Also if you are not aware of the new graphics concept for the web called SVG.

Not quite ready for primetime yet but looks promising.

[URL=http://www.google.com/search?q=%22rotate+image%22svg]rotate image svg[/URL]

-Bill
Copy linkTweet thisAlerts:
@cyber1Jan 10.2006 — I haven't used it other then playing with it on that page.

Googling the suject brings up a lot of interesting results.

[URL=http://www.google.com/search?q=%22rotate+image%22javascript]rotate image[/URL]

Also if you are not aware of it you might want to check out a new graphics concept for the web called SVG.

Not quite ready for primetime yet but looks promising.

[URL=http://www.google.com/search?q=%22rotate+image%22svg]rotate image svg[/URL]

Other than that your options would be Perl or PHP using ImageMagick or GD.

-Bill
×

Success!

Help @spidermanbcv spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...