图像旋转 [英] Image Rotation

查看:69
本文介绍了图像旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


有没有办法使用javascript将图像旋转到一定程度?

我的想法是顺时针旋转或反旋转顺时针方向基于鼠标坐标的图像..


并通过更改从文件夹动态加载的图像来使其变得很酷..


非常感谢..

解决方案


大家好,


有吗一种使用javascript将图像旋转到一定程度的方法??

我的想法是根据鼠标坐标顺时针或逆时针旋转图像..


并通过更改从文件夹动态加载的图像来降低它的效果..


非常感谢..



好主意。

这是完全基于数学的计算。

这里需要更多的数学知识而不是JS知识。

Ok。

所以发布你的代码专家在这里解决你的问题。


亲切问候,

Dmjpro。



好​​主意。

这是完全基于数学的计算。

这里需要更多的数学知识而不是JS知识。

好​​的。

所以发布你的代码专家来解决你的问题。


亲切的问候,

Dmjpro。



我开始关注这个想法和din找到一个方便的方法来做这个...在Google上搜索了很长时间..我想可能有一个javascript可以达到目的的功能..正如你所说,它确实需要很多Trig我会喜欢它..但是没有基本的想法如何在z-index设置为1的div上旋转图像..


任何想法都会受到赞赏。现在离开办公室..当你今天没有得到我的进一步回复时,Jus想不要让你失望..

Catch ya tomorro ..



我开始讨论这个想法,而din找到了一个方便的方法来做这个...谷歌搜索这个很长时间..我认为可能有一个javascript函数可以达到目的..正如你所说,它确实需要很多Trig我会喜欢它..但没有基本的想法如何旋转图像上将z-index设为1的div ..


An我会很感激..想离开办公室..当你今天没有得到我的进一步回复时,Jus想不要让你失望..

Catch ya tomorro ..


在Spin中旋转(顺时针或反时针)..

Cos当我给出旋转时,所有google结果都指向显示一系列图像的链接(banner旋转)


Hi everyone,

Is there a way to rotate an image to a certain degree using javascript ??
My Idea is to rotate clockwise or anti clockwise an image based on the mouse coordinates..

And to make it cool by changing the image dynamically loaded from a folder..

Many Thanks..

解决方案

Hi everyone,

Is there a way to rotate an image to a certain degree using javascript ??
My Idea is to rotate clockwise or anti clockwise an image based on the mouse coordinates..

And to make it cool by changing the image dynamically loaded from a folder..

Many Thanks..

Good Idea.
This is totally mathematical based calculation.
Here it requires more Math knowledge rather than JS knowledge.
Ok.
So post your code experts are here to solve your problem.

Kind regards,
Dmjpro.


Good Idea.
This is totally mathematical based calculation.
Here it requires more Math knowledge rather than JS knowledge.
Ok.
So post your code experts are here to solve your problem.

Kind regards,
Dmjpro.

I jus started off with the idea and din find a convenient way of doing this .. Googling on this for a long time .. I thought there might be a javascript function that can serve the purpose.. As you said, it indeed requires a lot of Trig n I would love it .. But dont have the basic idea how to rotate the image on a div with z-index set to 1..

Any Idea would be appreciated.. Leaving Office now .. Jus thought not to disappoint you when you dont get further reply from me for today ..
Catch ya tomorro ..


I jus started off with the idea and din find a convenient way of doing this .. Googling on this for a long time .. I thought there might be a javascript function that can serve the purpose.. As you said, it indeed requires a lot of Trig n I would love it .. But dont have the basic idea how to rotate the image on a div with z-index set to 1..

Any Idea would be appreciated.. Leaving Office now .. Jus thought not to disappoint you when you dont get further reply from me for today ..
Catch ya tomorro ..

Rotation as in Spin (clock wise or anti clockwise)..
Cos when i give rotation, all google results pointed to links for displaying a series of images ( banner rotation )


这篇关于图像旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆