Thursday, 19 September 2013

Converting image to imagedata and vice versa without drawing to canvas

Converting image to imagedata and vice versa without drawing to canvas

I'm wondering if there's a way to convert images to imagedata and vice
versa without drawing to canvas.
I know the methods getImageData() and toDataURL() can be used to copy the
canvas but what if I'd prefer to take an imc.src path and convert that
directly to imagedata. Or convert imagedata directly to a DataURL without
passing it to canvas.

No comments:

Post a Comment