<?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 opacity of exported map image? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-opacity-of-exported-map-image/m-p/227047#M21201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp;&amp;nbsp; I don't think I gave enough information about what we're trying to accomplish.&amp;nbsp; Yes, we are using client-side opacity sliders to set opacity of the map within the Javascript application.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I need help with is preserving those transparency settings when I export a map image to a PNG for embedding into a PDF.&amp;nbsp; If I'm only able to export an opaque image, then would I need to use some kind of image processing utility to set the opacity before I load it into the PDF?&amp;nbsp; I'm using TCPDF /PHP to create the PDF file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any suggestions!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 14:12:15 GMT</pubDate>
    <dc:creator>JenniferShanks</dc:creator>
    <dc:date>2010-10-21T14:12:15Z</dc:date>
    <item>
      <title>How to set opacity of exported map image?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-opacity-of-exported-map-image/m-p/227045#M21199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm loading an ArcGISDynamicMapServiceLayer into the map with an opacity of .8.&amp;nbsp; In the javascript viewer, the opacity looks correct.&amp;nbsp; When I export the map image using the following, the resulting image is 100% opaque.&amp;nbsp; Does anyone know how I can export the map image with the opacity settings preserved?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var imageParams = new esri.layers.ImageParameters();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //add the visible layers to the layerIds array&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; imageParams.layerIds = [dynamicMapService.visibleLayers];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; imageParams.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; imageParams.format = "png24";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; imageParams.height = 510;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; imageParams.width = 632;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; imageParams.dpi = 300;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //get the map image URL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; dynamicMapService.exportMapImage(imageParams, mapImageURLCallback);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 21:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-opacity-of-exported-map-image/m-p/227045#M21199</guid>
      <dc:creator>JenniferShanks</dc:creator>
      <dc:date>2010-10-19T21:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set opacity of exported map image?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-opacity-of-exported-map-image/m-p/227046#M21200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Opacity is done on the client side. The server doesn't have that attribute. That's why you don't have it in your image properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the opacity slider would be too slow if you have to do a server-roundtrip for every change. Therefore it has to be done on the cilent side.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 07:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-opacity-of-exported-map-image/m-p/227046#M21200</guid>
      <dc:creator>AxelSchaefer</dc:creator>
      <dc:date>2010-10-21T07:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set opacity of exported map image?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-opacity-of-exported-map-image/m-p/227047#M21201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp;&amp;nbsp; I don't think I gave enough information about what we're trying to accomplish.&amp;nbsp; Yes, we are using client-side opacity sliders to set opacity of the map within the Javascript application.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I need help with is preserving those transparency settings when I export a map image to a PNG for embedding into a PDF.&amp;nbsp; If I'm only able to export an opaque image, then would I need to use some kind of image processing utility to set the opacity before I load it into the PDF?&amp;nbsp; I'm using TCPDF /PHP to create the PDF file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any suggestions!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:12:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-opacity-of-exported-map-image/m-p/227047#M21201</guid>
      <dc:creator>JenniferShanks</dc:creator>
      <dc:date>2010-10-21T14:12:15Z</dc:date>
    </item>
  </channel>
</rss>

