473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

HTML 5 Canvas Touch Events Rotate Scale

dj12345
14
Hi,
I am creating an Image creator using canvas HTML5. In which I am drawing images inside the canvas. You can check the following example for demo.

http://radikalfx.com/files/collage/demo.html

What I want is that it should support the Touch Events of IPAD. For this I know I must use events like

Expand|Select|Wrap|Line Numbers
  1. canvas.addEventListener('touchstart', drawOnIpadStart, false);
  2. canvas.addEventListener('touchmove', drawOnIpadMove, false);
  3. canvas.addEventListener('touchend', drawOnIpadEnd, false);
  4.  
Does anyone know how can I rotate and scale images inside the Canvas using the Touch Events(Multi Touch events) like this

http://www.sitepen.com/blog/2008/07/...on-the-iphone/

if you see above link example on Iphone, using 2 fingers you can rotates the div.

What I wanted to rotate the Image inside the Canvas.


Any help, example appreciated.

Thanks
Dec 21 '11 #1
0 2096

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: giangiammy | last post by:
hi all, I have a browser running on a touchscreen, without a keyboard. I need to input a number in a form. Do you know if it is possible to write a HTML page, pure HTML (preferred) or with...
2
by: Rlrcstr | last post by:
I've been playing with the LinkLabel control and it kinda gets the job done, but isn't flexible enough for what I want to display. Is the any way to have a control on a windows form that will...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
4
by: peter.staab | last post by:
I have been trying to do the following. Using JS I want to create an input element (text box) and attach a event listener. I have done in in two different ways. The first is using xml elements...
0
by: Kwok | last post by:
Using html, I want to rotate the word upside down. When a user input a sentence, the sentence then will rotate 180degree. I use <div>, it can only rotate 90degree..... can anyone help me??
3
by: moondaddy | last post by:
I'm working in a WPF windows application and am wondering if it's possible to rotate a Canvas or user control derived from Canvas. I created a user control which derives from Canvas and I need to...
2
by: Safalra | last post by:
Recently I've rewritten much of my old Javascript code to use DOM functions so that enhancements can be attached to documents without needing to alter the HTML code. I assumed that adding event...
4
by: m0nkeymafia | last post by:
I read about this technique to basically allow you to have a file with behaviours and javascript events that attach to various dom objects and events but are not done inline. so its basically a...
7
by: MartinRinehart | last post by:
In the bit of code posted below, I get a 256x128 canvas, sized via CSS. Then I write a color wash, same dimensions. Problem: wash is about 10% smaller than the canvas. Results identical, FF on...
7
by: zaphod42 | last post by:
funny thing....I'm dynamically building forms, well, WAS building forms, but for this project I need some very specific validation and logic handling, so while I was changing my functions to deal...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.