<?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: Make an image layer grayscale in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369903#M1841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! I will look into those references. Is there a way to access RGB values of an ArcGISTiledLayer? If so, how could I got about changing those values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2017 20:37:17 GMT</pubDate>
    <dc:creator>NicholasLiccini</dc:creator>
    <dc:date>2017-10-01T20:37:17Z</dc:date>
    <item>
      <title>Make an image layer grayscale</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369901#M1839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if there is any way to take a basemap (e.g. Imagery) and make it gray scaled? Perhaps there is a workaround using a raster function or editing the contents of the image layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried changing the brightness, contrast, and gamma for an ArcGISTiledLayer object but none of those settings seem to make the layer grayscale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thanks!&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 20:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369901#M1839</guid>
      <dc:creator>NicholasLiccini</dc:creator>
      <dc:date>2017-09-29T20:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Make an image layer grayscale</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369902#M1840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Essentially nothing in your environment makes an image gray scale unless the tools are built-in but you can make it so within your programming environment from rgb as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially gray = 0.2989 * r + 0.5870 * g + 0.1140 * b&lt;/P&gt;&lt;P&gt;see&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/12201577/how-can-i-convert-an-rgb-image-into-grayscale-in-python"&gt;http://stackoverflow.com/questions/12201577/how-can-i-convert-an-rgb-image-into-grayscale-in-python&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.m.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale"&gt;https://en.m.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.m.wikipedia.org/wiki/HSL_and_HSV"&gt;https://en.m.wikipedia.org/wiki/HSL_and_HSV&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 20:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369902#M1840</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-09-29T20:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Make an image layer grayscale</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369903#M1841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! I will look into those references. Is there a way to access RGB values of an ArcGISTiledLayer? If so, how could I got about changing those values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 20:37:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369903#M1841</guid>
      <dc:creator>NicholasLiccini</dc:creator>
      <dc:date>2017-10-01T20:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Make an image layer grayscale</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369904#M1842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That you would have to wait for others.&amp;nbsp; I just provided some background on making rgb a single-band gray scale... not just look grayish &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 21:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369904#M1842</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-01T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Make an image layer grayscale</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369905#M1843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have 3 main options to manipulate the look of the layer in ArcGIS Runtime:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If the layer inherits ImageAdjustmentLayer, then use gamma, contrast, brightness. But it sounds like that is not what you need&lt;/P&gt;&lt;P&gt;- Author your data differently. In ArcGIS Pro or ArcMap, when you are creating your data, you could change the appearance of your data here, using a method like what Dan showed above&lt;/P&gt;&lt;P&gt;- Use shaders or play around with some other sort of client side rendering manipulation that Qt offers. For example, I have played around with the QML ShaderEffect type and our MapView, and have been able to see some cool effects applied to it -&amp;nbsp;&lt;A class="link-titled" href="http://doc.qt.io/qt-5/qml-qtquick-shadereffect.html" title="http://doc.qt.io/qt-5/qml-qtquick-shadereffect.html"&gt;ShaderEffect QML Type | Qt Quick 5.9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369905#M1843</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-10-02T15:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make an image layer grayscale</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369906#M1844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for providing those options! For the moment I will work with the 3rd option (the QML types), but when I use the shaders (particularly the Desaturate item) it turns all of my drawn graphics to grayscale as well since I assume they are associated with the MapView item. Is there any way to separate the graphics and the map so that I could use the shader on just the basemap and not on the graphics?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;Desaturate&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;anchors.fill: &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;parent&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;source&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;map&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;desaturation&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;1.0&lt;/PRE&gt;&lt;PRE&gt;}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 16:22:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369906#M1844</guid>
      <dc:creator>NicholasLiccini</dc:creator>
      <dc:date>2017-10-02T16:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Make an image layer grayscale</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369907#M1845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, not that I am aware of. This will alter the entire map view, including all layers and graphics inside of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 16:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/make-an-image-layer-grayscale/m-p/369907#M1845</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2017-10-02T16:25:46Z</dc:date>
    </item>
  </channel>
</rss>

