<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic We are both going to feel in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039537#M45472</link>
    <description>&lt;P&gt;We are both going to feel pretty silly. :-)&lt;/P&gt;

&lt;P&gt;The toDataURL function is attached to the canvas, not the context. I didn't even notice it myself until I looked at my code. Almost everything else with the canvas happens with the context.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2015 17:02:12 GMT</pubDate>
    <dc:creator>Barry_Johnson</dc:creator>
    <dc:date>2015-03-10T17:02:12Z</dc:date>
    <item>
      <title>toDataURL</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039530#M45465</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I toDataURL function supported on a canvas for a crosswalk deployment ?&lt;BR /&gt;
	Do I need plugin ?&lt;/P&gt;

&lt;P&gt;this code:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;var ctx = document.getElementById('avatarCanvas').getContext('2d');
ar img = new Image();
img.src = url;
img.onload = function () {
ctx.drawImage(img,0,0);
    
alert( ctx.toDataURL('image/png') );   &lt;/PRE&gt;

&lt;P&gt;fails with "undefined" function&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2015 07:14:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039530#M45465</guid>
      <dc:creator>Spiros_N_</dc:creator>
      <dc:date>2015-03-07T07:14:08Z</dc:date>
    </item>
    <item>
      <title>Canvas.toDataURL works fine</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039531#M45466</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;Canvas.&lt;/SPAN&gt;toDataURL works fine on Crosswalk. I use it three different places in my current project without difficulty. Are you saying your code works in the emulator or a webpage but not in your built app?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 17:39:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039531#M45466</guid>
      <dc:creator>Barry_Johnson</dc:creator>
      <dc:date>2015-03-09T17:39:18Z</dc:date>
    </item>
    <item>
      <title>Barrett J. </title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039532#M45467</link>
      <description>&lt;P&gt;Barrett J.&amp;nbsp;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thanks thanks for your reply.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I got Undefined is not a function in emulator. I haven't&amp;nbsp;&lt;/SPAN&gt;tried it in build app yet/&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/7378i844D38B7FB04FF72/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 17:51:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039532#M45467</guid>
      <dc:creator>Spiros_N_</dc:creator>
      <dc:date>2015-03-09T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Seems strange, as it</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039533#M45468</link>
      <description>&lt;P&gt;Seems strange, as it (toDataURL) works fine in the emulator. I hate to ask, but are you sure your "sweetAlert" is defined globally? Or set a breakpoint the line before and inspect ctx to see what is there and in its prototype.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 00:29:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039533#M45468</guid>
      <dc:creator>Barry_Johnson</dc:creator>
      <dc:date>2015-03-10T00:29:47Z</dc:date>
    </item>
    <item>
      <title>This is it the ctx </title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039534#M45469</link>
      <description>&lt;P class="parent expanded" style="box-sizing: border-box; margin-left: 1px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; -webkit-user-select: text; cursor: default; padding-top: 2px; line-height: 12px; padding-left: 4px;"&gt;Yes the alert is defined.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P class="parent expanded" style="box-sizing: border-box; margin-left: 1px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; -webkit-user-select: text; cursor: default; padding-top: 2px; line-height: 12px; padding-left: 4px;"&gt;&lt;SPAN style="font-size: 1em;"&gt;This is it the ctx :&lt;/SPAN&gt;&lt;/P&gt;

&lt;P class="parent expanded" style="box-sizing: border-box; margin-left: 1px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; -webkit-user-select: text; cursor: default; padding-top: 2px; line-height: 12px; padding-left: 4px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;ctx: CanvasRenderingContext2D
canvas: canvas#avatarCanvas
fillStyle: "#000000"
font: "10px sans-serif"
globalAlpha: 1
globalCompositeOperation: "source-over"
imageSmoothingEnabled: true
lineCap: "butt"
lineDashOffset: 0
lineJoin: "miter"
lineWidth: 1
miterLimit: 10
shadowBlur: 0
shadowColor: "rgba(0, 0, 0, 0)"
shadowOffsetX: 0
shadowOffsetY: 0
strokeStyle: "#000000"
textAlign: "start"
textBaseline: "alphabetic"
webkitImageSmoothingEnabled: true
__proto__: CanvasRenderingContext2D
arc: function arc() { [native code] }
arcTo: function arcTo() { [native code] }
beginPath: function beginPath() { [native code] }
bezierCurveTo: function bezierCurveTo() { [native code] }
clearRect: function clearRect() { [native code] }
clearShadow: function clearShadow() { [native code] }
clip: function clip() { [native code] }
closePath: function closePath() { [native code] }
constructor: function CanvasRenderingContext2D() { [native code] }
createImageData: function createImageData() { [native code] }
createLinearGradient: function createLinearGradient() { [native code] }
createPattern: function createPattern() { [native code] }
createRadialGradient: function createRadialGradient() { [native code] }
drawFocusIfNeeded: function drawFocusIfNeeded() { [native code] }
drawImage: function drawImage() { [native code] }
drawImageFromRect: function drawImageFromRect() { [native code] }
ellipse: function ellipse() { [native code] }
fill: function fill() { [native code] }
fillRect: function fillRect() { [native code] }
fillText: function fillText() { [native code] }
getContextAttributes: function getContextAttributes() { [native code] }
getImageData: function getImageData() { [native code] }
getLineDash: function getLineDash() { [native code] }
isPointInPath: function isPointInPath() { [native code] }
isPointInStroke: function isPointInStroke() { [native code] }
lineTo: function lineTo() { [native code] }
measureText: function measureText() { [native code] }
moveTo: function moveTo() { [native code] }
putImageData: function putImageData() { [native code] }
quadraticCurveTo: function quadraticCurveTo() { [native code] }
rect: function rect() { [native code] }
resetTransform: function resetTransform() { [native code] }
restore: function restore() { [native code] }
rotate: function rotate() { [native code] }
save: function save() { [native code] }
scale: function scale() { [native code] }
setAlpha: function setAlpha() { [native code] }
setCompositeOperation: function setCompositeOperation() { [native code] }
setFillColor: function setFillColor() { [native code] }
setLineCap: function setLineCap() { [native code] }
setLineDash: function setLineDash() { [native code] }
setLineJoin: function setLineJoin() { [native code] }
setLineWidth: function setLineWidth() { [native code] }
setMiterLimit: function setMiterLimit() { [native code] }
setShadow: function setShadow() { [native code] }
setStrokeColor: function setStrokeColor() { [native code] }
setTransform: function setTransform() { [native code] }
stroke: function stroke() { [native code] }
strokeRect: function strokeRect() { [native code] }
strokeText: function strokeText() { [native code] }
transform: function transform() { [native code] }
translate: function translate() { [native code] }
__proto__: Object
__defineGetter__: function __defineGetter__() { [native code] }
__defineSetter__: function __defineSetter__() { [native code] }
__lookupGetter__: function __lookupGetter__() { [native code] }
__lookupSetter__: function __lookupSetter__() { [native code] }
constructor: function Object() { [native code] }
hasOwnProperty: function hasOwnProperty() { [native code] }
isPrototypeOf: function isPrototypeOf() { [native code] }
propertyIsEnumerable: function propertyIsEnumerable() { [native code] }
toLocaleString: function toLocaleString() { [native code] }
toString: function toString() { [native code] }
valueOf: function valueOf() { [native code] }
get __proto__: function __proto__() { [native code] }
set __proto__: function __proto__() { [native code] }&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2015 11:23:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039534#M45469</guid>
      <dc:creator>Spiros_N_</dc:creator>
      <dc:date>2015-03-10T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Very strange. I have to try</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039535#M45470</link>
      <description>&lt;P&gt;Very strange. I have to try this myself. What device are you emulating, just so I make sure I try the same thing?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 16:37:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039535#M45470</guid>
      <dc:creator>Barry_Johnson</dc:creator>
      <dc:date>2015-03-10T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Google Nexus 4 is the</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039536#M45471</link>
      <description>&lt;P&gt;Google Nexus 4 is the emulation device.&lt;/P&gt;

&lt;P&gt;Is there a possibility that I'm using a wrong cordova 3.x plugin ?&amp;nbsp;&lt;BR /&gt;
	What it the required plugin for the canvas ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 16:42:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039536#M45471</guid>
      <dc:creator>Spiros_N_</dc:creator>
      <dc:date>2015-03-10T16:42:56Z</dc:date>
    </item>
    <item>
      <title>We are both going to feel</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039537#M45472</link>
      <description>&lt;P&gt;We are both going to feel pretty silly. :-)&lt;/P&gt;

&lt;P&gt;The toDataURL function is attached to the canvas, not the context. I didn't even notice it myself until I looked at my code. Almost everything else with the canvas happens with the context.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 17:02:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039537#M45472</guid>
      <dc:creator>Barry_Johnson</dc:creator>
      <dc:date>2015-03-10T17:02:12Z</dc:date>
    </item>
    <item>
      <title>OOOOps !</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039538#M45473</link>
      <description>&lt;P&gt;OOOOps !&lt;/P&gt;

&lt;P&gt;Yes Barrett this is it !&lt;BR /&gt;
	Thanks for your help!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 17:21:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039538#M45473</guid>
      <dc:creator>Spiros_N_</dc:creator>
      <dc:date>2015-03-10T17:21:39Z</dc:date>
    </item>
    <item>
      <title>You are very welcome!</title>
      <link>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039539#M45474</link>
      <description>&lt;P&gt;You are very welcome!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 17:44:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/toDataURL/m-p/1039539#M45474</guid>
      <dc:creator>Barry_Johnson</dc:creator>
      <dc:date>2015-03-10T17:44:59Z</dc:date>
    </item>
  </channel>
</rss>

