This is a migrated thread and some comments may be shown as answers.

Canvas Widget

5 Answers 402 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lindsay Miles
Top achievements
Rank 1
Lindsay Miles asked on 10 Nov 2011, 04:18 PM
If you guys can create a widget using a canvas that will allow a user to export canvas contents to a .png and/or .jpg file locally and/or a specific location on a server, suddenly, native apps become less important and the need to target WP7, W8/Metro, iOS and Android is mitigated (to a large extent).

Example: display a canvas, load pre-existing image, user draws lines over image, save image and user-input into new bitmap file (somewhere).

Furthermore, override the events that fire when a user touches a screen causing zoom-in/out and scrolling. Touching/dragging inside the "canvas widget" should invoke event to allow for manipulating that control/widget content only, similar to mouse-down, mouse-move and mouse-up...

Wrap that into a HTML5 widget...I'm signing up to Kendo right away.

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 11 Nov 2011, 10:07 AM
Hi Lindsay,

If I understand correctly, you want to use the canvas element as a rendering surface and build a layout/style/event framework around it.

This is an interesting idea, but it's way out of scope for us. Kendo is an HTML framework and we want to leverage the browser as much as we can.

I believe Mozilla experimented with something similar for Bespin, but they eventually gave up. 

Greetings,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lindsay Miles
Top achievements
Rank 1
answered on 14 Nov 2011, 07:56 PM
Tsvetomir,

Not sure if it'd get that complicated but it might...

I want to allow the user to draw onto a canvas with a mouse or touch, then be able to export or save what they draw as a bitmap either locally or on a server.

Any further comment?
Too much for current browser capabilities?

Feedback would be great!
0
Accepted
T. Tsonev
Telerik team
answered on 15 Nov 2011, 10:21 AM
Hi Lindsay,

I see what you mean now, sorry for the misunderstanding.

We do not plan implementing such drawing control for the time being. Drawing applications are not our strong point, but we can reconsider if the interest proves high enough.

That said, your goal doesn't sound that complicated. There are good resources out there that can guide you. Exporting the image also seems possible.

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lindsay Miles
Top achievements
Rank 1
answered on 15 Nov 2011, 03:13 PM
Tsvetomir,

THANKS VERY MUCH!

The only hurdle to overcome with these samples is to obfuscate or scamble the proprietary code the makes our drawing functionality unique.

Any advice on that?

Thanks again. This will change our approach, for sure.
0
Kenn
Top achievements
Rank 1
answered on 13 Jan 2013, 05:05 AM
I realize this thread is over a year old, but wanted to express my support for the idea of drawing on the canvas.  The stock chart becomes infinitely more powerful if my users can draw trendlines.
Tags
General Discussions
Asked by
Lindsay Miles
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Lindsay Miles
Top achievements
Rank 1
Kenn
Top achievements
Rank 1
Share this question
or