<?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 Re: How to Dynamically Change GIF Image Color in API for JS 4.12? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364694#M33802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You should switch to using a textSymbol then.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2019 12:35:26 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-09-05T12:35:26Z</dc:date>
    <item>
      <title>How to Dynamically Change GIF Image Color in API for JS 4.12?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364693#M33801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have GIF images as PictureMarkerSymbols. The images are filled in black(as shown below, the letters 'N', 'F', 'R', 'L', 'Z').&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="458671" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/458671_擷取8.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Now I want to change the color of these GIFs to red or blue. I've&amp;nbsp;tried some changing color codes in JS, but I'm not able to work&amp;nbsp;them out successfully. Is there any other way to change GIF color dynamically in code in ArcGIS API? Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snippet of my code :&lt;/P&gt;&lt;P&gt;var letterGraphic = new Graphic({&lt;BR /&gt; geometry: {&lt;BR /&gt; type: "multipoint",&lt;BR /&gt; points: [[0, 12]]&lt;BR /&gt; },&lt;BR /&gt; symbol: {&lt;BR /&gt; type: "picture-marker",&lt;BR /&gt; url: "http://localhost:{Port}/{Project name}/letterR.gif",&lt;BR /&gt; width: "80px",&lt;BR /&gt; height: "80px"&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; view.graphics.add(letterGraphic);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 01:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364693#M33801</guid>
      <dc:creator>JerryChen</dc:creator>
      <dc:date>2019-09-05T01:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically Change GIF Image Color in API for JS 4.12?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364694#M33802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You should switch to using a textSymbol then.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 12:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364694#M33802</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-09-05T12:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically Change GIF Image Color in API for JS 4.12?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364695#M33803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also suggest using TextSymbols.&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/styling-icon-fonts/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/styling-icon-fonts/index.html"&gt;Here is a good sample to get you started&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 16:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364695#M33803</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2019-09-05T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically Change GIF Image Color in API for JS 4.12?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364696#M33804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have GIFs that are not texts&amp;nbsp;so I need url reference to each of my images which a TextSymbol is lack of. I've successfully changed image color using HTML5 canvas, but I have no clue how to implement it in the an ArcGIS map. I found v3.x APIs seem to support canvas, but not in v4.x.&lt;/P&gt;&lt;P&gt;By the way, sorry for providing too little detail.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/458721_擷取9.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2019 01:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364696#M33804</guid>
      <dc:creator>JerryChen</dc:creator>
      <dc:date>2019-09-06T01:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically Change GIF Image Color in API for JS 4.12?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364697#M33805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion, Ben. But unfortunately, I have non-text images so using TextSymbols may not be a solution. What I need to achieve is to transform HTML5 canvas into a ArcGIS Graphic like I mentioned under Robert's comment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2019 01:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364697#M33805</guid>
      <dc:creator>JerryChen</dc:creator>
      <dc:date>2019-09-06T01:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically Change GIF Image Color in API for JS 4.12?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364698#M33806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Image manipulation is going to be hard to implement. I still say use a true type font. There are a couple of free font creator apps out there and you can import your non-text images into those programs and create a true type font for them. Then you create a pbf file for that font as explained in this thread.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/227210-api-v410-adding-a-local-font-esri-weather"&gt;https://community.esri.com/thread/227210-api-v410-adding-a-local-font-esri-weather&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 12:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364698#M33806</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-09-09T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Dynamically Change GIF Image Color in API for JS 4.12?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364699#M33807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, you could create overlapping symbols of different colors, and then toggle their opacity when you want to switch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2019 15:37:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-change-gif-image-color-in-api/m-p/364699#M33807</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2019-09-09T15:37:39Z</dc:date>
    </item>
  </channel>
</rss>

