放大HTML5画布并允许绘图 [英] Zoom in HTML5 canvas and allow drawing

查看:127
本文介绍了放大HTML5画布并允许绘图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我有一个类似于绘画的工具,用户可以在画布上绘制不同的形状。画布放在一个有背景图像的div里面。画布的定位方式使用户感觉图像本身就有标记。

现在我必须在我的工具中添加缩放功能,用户可以在其中放大图片并进行标记。任何人都可以指向我正确的链接来实现这个

Hello,

I have a tool similar to paint where users can draw different shapes on canvas.The canvas is placed inside a div which has background image.The canvas is positioned in such a way that it gives user feel of marking on the image itself.
Now i have to add zooming functionality to my tool where the user can zoom in the picture and do the markings.Can anyone point me to right link to achieve this

推荐答案

使用你的标题中的关键词给出了以下点击:



也许这些链接可以帮助您入门。

stackoverflow: HTML5 Canvas:Zooming? [ ^ ]



CanvasZoom [ ^ ]



HTML 5 Canvas课程:缩放和重用 [ ^ ]
Using your the key words in your title gave the following hits:

Maybe these links can help to get you started.
stackoverflow: HTML5 Canvas: Zooming?[^]

CanvasZoom[^]

HTML 5 Canvas Lessons: Zooming and Reusing[^]


这篇关于放大HTML5画布并允许绘图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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