Search the web
Sign In
New User? Sign Up
canvas-developers · Canvas Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Possibility to save content to server   Message List  
Reply | Forward Message #164 of 493 |
Re: Possibility to save content to server

Good news! Robert O'Callahan informed me that the toDataUrl feature is
now working in the latest Firefox builds. Here's the IDL (interface
description language)
http://lxr.mozilla.org/seamonkey/source/dom/public/idl/html/nsIDOMHTMLCanvasElem\
ent.idl#58



I havent tried it out yet but it looks promising! There's even a new
toDataUrlAs which lets you get more granular as to what type of image
data you want! :

// This version lets you specify different image types and pass parameters
61 // to the encoder. For example toDataURLAs("image/png",
"transparency=none")
62 // gives you a PNG with the alpha channel discarded. See the
encoder for
63 // the options string that it supports. Separate multiple
options with
64 // semicolons.







--- In canvas-developers@yahoogroups.com, "grussmir" <gruss.mir@...>
wrote:
>
> --- In canvas-developers@yahoogroups.com, Marcus Engene <ehsmeng@>
> wrote:
> >
> > grussmir wrote:
> > > Hi folks,
> > > Canvas-Newbie Question:
> > > Is there any possibility to get the image data out of the canvas
into
> > > a variable to post it back to my php-server-skript?
> > > That would allow us to make some kind of dashboard.....
> > >
> > > MiR
> > Hi,
> >
> > As far as I know, no. Not widely implemented anyway. Apart from the
> > function Arve Bersvendsen just wrote about, a getPixel()-function
would
> > be nice. Then it would be easy to read the pixels in js and create
> an image.
> >
> > Anyway, as a workaround for this I did a simple js-class that has
some
> > drawing functions on it.
> (...)
> > Best regards,
> > Marcus
> >
>
> Thanks a lot, expected something like that.
> Alread found also the discussion on bugzille, wich mainly seems to
> adress security issues......
> So lets wait it out for later versions...
>
> Thanks
> MiR
>








Wed Mar 1, 2006 3:26 pm

triptych999
Online Now Online Now
Send Email Send Email

Forward
Message #164 of 493 |
Expand Messages Author Sort by Date

Hi folks, Canvas-Newbie Question: Is there any possibility to get the image data out of the canvas into a variable to post it back to my php-server-skript? ...
grussmir
Offline Send Email
Feb 28, 2006
5:05 pm

... On the HTMLCanvasElement interface, there is a method named toDataURL() that allows you to convert the canvas to a Data URI representation of the current...
Arve Bersvendsen
yrandomtox
Offline Send Email
Feb 28, 2006
5:16 pm

... Hi, As far as I know, no. Not widely implemented anyway. Apart from the function Arve Bersvendsen just wrote about, a getPixel()-function would be nice....
Marcus Engene
ehsmeng_ch
Offline Send Email
Feb 28, 2006
5:28 pm

... an image. ... (...) ... Thanks a lot, expected something like that. Alread found also the discussion on bugzille, wich mainly seems to adress security...
grussmir
Offline Send Email
Feb 28, 2006
5:42 pm

Good news! Robert O'Callahan informed me that the toDataUrl feature is now working in the latest Firefox builds. Here's the IDL (interface description...
Andrew
triptych999
Online Now Send Email
Mar 1, 2006
3:26 pm

hello, can nayone help me out about how can we save an canvas that was drawn (in IE) can be saved in the database. thank you sudhir. ... an image. ... f.ex....
koneru_sudhir
Offline Send Email
Aug 4, 2007
2:12 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help