Scribble


Scenario 1

Description: Create an ScribbleImage object from a local image file

var scribble = new Scribble().load("mypic.jpg");
user(0).scribble(scribble);

Scenario 2

Description: Create an ScribbleImage object from a remote image file

var scribble = new Scribble();
scribble.src = "http://www.codeplex.com/mypic.jpg";

scribble.oncomplete = function (e)
{
    if (e)
        user(parseInt(this.arg)).scribble(this);
}

scribble.download(0);

Last edited Dec 10, 2012 at 5:32 PM by oobenoob, version 1