Drawing on the screen

1,023 views
Skip to first unread message

MonaA

unread,
Jun 6, 2011, 12:11:11 PM6/6/11
to phonegap
I am still new to PhoneGap, and the specification I was given today is
to draw lines on the screen in order for doctors to explain a
procedure from a picture or video. So, I need to know how to go about
it. How do you draw on a screen? Is there a plugin that I need to
include?

Any help would be appreciated.

Richard Rodger

unread,
Jun 6, 2011, 4:32:47 PM6/6/11
to phon...@googlegroups.com
Hi MonaA,

Your best bet would be to use a canvas element.

Here's an example web app, but you can use the same code for PhoneGap:
https://gist.github.com/1011032

Richard

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Richard Rodger
CEO, Chartaca.com
ric...@chartaca.com
@rjrodger
+353 87 6827135

MonaA

unread,
Jun 7, 2011, 2:29:42 PM6/7/11
to phonegap
hi,

Thanks, but this won't draw on top of a video. Or I am not doing it
right. It works though. I wonder what else I can use. Objective C
somehow?

On Jun 6, 4:32 pm, Richard Rodger <rich...@chartaca.com> wrote:
> Hi MonaA,
>
> Your best bet would be to use a canvas element.
>
> Here's an example web app, but you can use the same code for PhoneGap:https://gist.github.com/1011032
>
> Richard
>
> On 6 Jun 2011, at 17:11, MonaA wrote:
>
>
>
>
>
>
>
>
>
> > I am still new to PhoneGap, and the specification I was given today is
> > todrawlines on thescreenin order for doctors to explain a
> > procedure from a picture or video. So, I need to know how to go about
> > it. How do youdrawon ascreen? Is there a plugin that I need to
> > include?
>
> > Any help would be appreciated.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "phonegap" group.
> > To post to this group, send email to phon...@googlegroups.com
> > To unsubscribe from this group, send email to
> > phonegap+u...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > For more info on PhoneGap or to download the code go towww.phonegap.com
>
> Richard Rodger
> CEO, Chartaca.com
> rich...@chartaca.com
> @rjrodger
> +353 87 6827135

Shazron Abdullah

unread,
Jun 7, 2011, 3:27:18 PM6/7/11
to phon...@googlegroups.com
Yeah Objective-C. Video is always on top of everything in a UIWebview (at least on iOS it is).

MonaA

unread,
Jun 8, 2011, 10:14:35 AM6/8/11
to phonegap
Any tutorials that anyone know of or anyone has done this in their
phonegap app?

On Jun 7, 3:27 pm, Shazron Abdullah <shazron.abdul...@nitobi.com>
wrote:
> Yeah Objective-C. Video is always on top of everything in a UIWebview (at least on iOS it is).
>
> On 2011-06-07, at 11:29 AM, MonaA wrote:
>
>
>
>
>
>
>
> > hi,
>
> > Thanks, but this won'tdrawon top of a video. Or I am not doing it

Nick McCloud

unread,
Jun 8, 2011, 11:51:06 AM6/8/11
to phonegap
Shaz was saying that video is always on top in PhoneGap so you won't
be able to use a canvas element so you are going to have to either
code a module in Objective-C in PhoneGap or just use Objective-C for
the entire project - you can't do what you want to do straight out the
box.
Reply all
Reply to author
Forward
0 new messages