<?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 set Image Sevice Layer Symbology in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-image-sevice-layer-symbology/m-p/202736#M5026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks to Laurence from ESRI support for help so far! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still in search of code hooks on the image service to turn on the alpha channel set it to band 4 and set the stretch type to none?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4679[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good - I took the raw data and through code generated an image. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Better - Through a script take out the alpha channel. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best - The original smoothed image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4681[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4680[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Feb 2011 11:39:23 GMT</pubDate>
    <dc:creator>JimHenry</dc:creator>
    <dc:date>2011-02-09T11:39:23Z</dc:date>
    <item>
      <title>How to set Image Sevice Layer Symbology</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-image-sevice-layer-symbology/m-p/202735#M5025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: a5xs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a mosaic object to store time tagged images.&amp;nbsp; I discovered that if I create a mxd and publish to a dynamic map service my symbology changes do not get saved to the service and there is no way to get access to the values.&amp;nbsp; Therefore I switched to an image service in hopes that I would have access to the values.&amp;nbsp; In the arcmap gui I see I have access to the symbology properties but now I need access to them via code.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hooks I am looking for are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Turn on alpha channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set alpha channel to band 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Set the stretch type to none&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4257[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4256[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-image-sevice-layer-symbology/m-p/202735#M5025</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-01-13T13:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Image Sevice Layer Symbology</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-image-sevice-layer-symbology/m-p/202736#M5026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks to Laurence from ESRI support for help so far! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still in search of code hooks on the image service to turn on the alpha channel set it to band 4 and set the stretch type to none?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4679[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good - I took the raw data and through code generated an image. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Better - Through a script take out the alpha channel. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best - The original smoothed image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4681[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH]4680[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 11:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-image-sevice-layer-symbology/m-p/202736#M5026</guid>
      <dc:creator>JimHenry</dc:creator>
      <dc:date>2011-02-09T11:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Image Sevice Layer Symbology</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-image-sevice-layer-symbology/m-p/202737#M5027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: chri6255&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jim, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example of the syntax you would you for a rendering rule performing a "Streach" raster funtion. There is a link below of different ways you can use the render rule to manipulate your image service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
RestLayerProperties();
imgLayer.BandIds = new int[] {0,1,2,3};
IDictionary&amp;lt;string, object&amp;gt; functionArguments = new Dictionary&amp;lt;string, object&amp;gt;();
functionArguments.Add("StretchType", iStretchType);
functionArguments.Add("NumberOfStandardDeviations", numberOfStandardDeviations);
functionArguments.Add("Statistics", statistics);
functionArguments.Add("Gamma", gamma);

imgLayer.RenderingRule = new RenderingRule() 
{ 
RasterFunctionName = "Stretch", 
RasterFunctionArguments = functionArguments, 
VariableName = "Raster" 
};
imgLayer.Refresh();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a link to the documentation on what types of rendering rules you can use against your image service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/israsterfunctions.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/israsterfunctions.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-image-sevice-layer-symbology/m-p/202737#M5027</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T10:04:41Z</dc:date>
    </item>
  </channel>
</rss>

