<?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 PictureMarkerSymbol blurry/pixelated in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339139#M2211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working on a map that places PictureMarkerSymbols with custom drawables, and I've noticed that the PictureMarkerSymbols are blurry when displayed on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;drawables in drawable-mdpi, drawable-hdpi, drawable-xhdpi, etc. and the PictureMarkerSymbol(Context, Drawable) constructor. Images are not sharp at all (though appropriately sized)&lt;/LI&gt;&lt;LI&gt;drawables in drawable-mdpi, drawable-hdpi, drawable-xhdpi, etc. and the PictureMarkerSymbol(Drawable) constructor. Images are somewhat sharp and way too big&lt;/LI&gt;&lt;LI&gt;drawables in drawable-nodpi and PictureMarkerSymbol(Drawable) constructor. I just used the smallest Drawable I had, which was the mdpi one. Drawables were appropriately sized but still blurry&lt;/LI&gt;&lt;LI&gt;drawable in the drawable (no qualifiers) folder and the PictureMarkerSymbol(Drawable) constructor. Huge and blurry&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The my location (blue dot) icon is very crisp. How do you achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; after more testing, I've noticed the blurriness is more pronounced with a LayerDrawable. Could this be the source of my issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 23:14:02 GMT</pubDate>
    <dc:creator>JeffJohnson2</dc:creator>
    <dc:date>2016-01-12T23:14:02Z</dc:date>
    <item>
      <title>PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339139#M2211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working on a map that places PictureMarkerSymbols with custom drawables, and I've noticed that the PictureMarkerSymbols are blurry when displayed on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;drawables in drawable-mdpi, drawable-hdpi, drawable-xhdpi, etc. and the PictureMarkerSymbol(Context, Drawable) constructor. Images are not sharp at all (though appropriately sized)&lt;/LI&gt;&lt;LI&gt;drawables in drawable-mdpi, drawable-hdpi, drawable-xhdpi, etc. and the PictureMarkerSymbol(Drawable) constructor. Images are somewhat sharp and way too big&lt;/LI&gt;&lt;LI&gt;drawables in drawable-nodpi and PictureMarkerSymbol(Drawable) constructor. I just used the smallest Drawable I had, which was the mdpi one. Drawables were appropriately sized but still blurry&lt;/LI&gt;&lt;LI&gt;drawable in the drawable (no qualifiers) folder and the PictureMarkerSymbol(Drawable) constructor. Huge and blurry&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The my location (blue dot) icon is very crisp. How do you achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; after more testing, I've noticed the blurriness is more pronounced with a LayerDrawable. Could this be the source of my issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 23:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339139#M2211</guid>
      <dc:creator>JeffJohnson2</dc:creator>
      <dc:date>2016-01-12T23:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339140#M2212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the picture that you are trying to use available for us to test with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339140#M2212</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-01-13T13:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339141#M2213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After more testing, I'm 99% certain it's the fact that I was using a LayerDrawable. For some reason, PictureMarkerSymbol doesn't scale these correctly. For testing, it should produce this effect for any LayerDrawable (or xml drawable &amp;lt;layer-list&amp;gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 15:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339141#M2213</guid>
      <dc:creator>JeffJohnson2</dc:creator>
      <dc:date>2016-01-13T15:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339142#M2214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After testing this offline for a little bit, I believe that this might be a suitable workaround for you.&amp;nbsp; I believe that if you store the image as an asset and then create it as a drawable at Runtime, you will get better results with the display of the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14526994496941276 jive_text_macro" data-renderedposition="113_8_912_16" jivemacro_uid="_14526994496941276" modifiedtitle="true"&gt;&lt;P&gt;&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;PictureMarkerSymbol(Drawable.&lt;SPAN style="font-style: italic;"&gt;createFromStream&lt;/SPAN&gt;(getAssets().open(&lt;SPAN style="color: #6a8759;"&gt;"Shell-Red-Icon.png&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;, null&lt;/SPAN&gt;))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward to seeing how this works for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 15:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339142#M2214</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-01-13T15:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339143#M2215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon even further testing, I think I have some evidence that helps show the difference between loading the image in as a drawable image asset and just as an asset.&amp;nbsp; Using the code snippet above, the difference is noticable for the red shell icon.&amp;nbsp; What do you think?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading as a drawable, the shell looks blurry:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="device-2016-01-13-105507.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/168169_device-2016-01-13-105507.png" style="width: 620px; height: 1102px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading as an asset, the shell looks clear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="asAsset.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/168311_asAsset.png" style="width: 620px; height: 1102px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 16:03:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339143#M2215</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-01-13T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339144#M2216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That looks promising, I'll try it out and report back. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 16:06:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339144#M2216</guid>
      <dc:creator>JeffJohnson2</dc:creator>
      <dc:date>2016-01-13T16:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339145#M2217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did not do the trick for me unfortunately. Both loading from drawables and loading from assets have the same amount of blurriness, at least to the naked eye. I may be wrong, and feel free to correct me if I am, but I think I may know why you saw improvements in your example. If you use drawables and the &lt;CODE&gt;PictureMarker(Drawable) &lt;/CODE&gt; constructor (not &lt;CODE&gt;PictureMarkerSymbol(Context, Drawable)&lt;/CODE&gt;), it will not resize the drawable. For some reason, using &lt;CODE&gt;Drawable.createFromStream()&lt;/CODE&gt; does resize it. It looks like to me that loading from assets, and using the &lt;SPAN style="font-family: monospace;"&gt;PictureMarkerSymbol(Context, Drawable)&lt;/SPAN&gt; constructor accomplishes the same thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For anyone who comes across this later, my biggest issue was using `LayerDrawable`. To solve this problem, I just put multiple graphics on the screen to imitate one drawable with many layers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339145#M2217</guid>
      <dc:creator>JeffJohnson2</dc:creator>
      <dc:date>2016-01-13T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol blurry/pixelated</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339146#M2218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem, but in a Web Application. Can any one help me with this issue. I am developing a Web Application with ArcGIs API Javascript that was working with Google API. You can notice the diference between the Original Image and the same image that was opened over the map using PictureMarkerSymbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original Image&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Visualizador_Image.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/171392_Visualizador_Image.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Web Application using Google API &lt;/P&gt;&lt;P&gt;&lt;IMG alt="FRST_Google.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/171393_FRST_Google.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;NEW Web Application using ArcGis API Javascript &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FRST_ESRI.png" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/171394_FRST_ESRI.png" style="width: 620px; height: 336px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 19:34:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/picturemarkersymbol-blurry-pixelated/m-p/339146#M2218</guid>
      <dc:creator>MarceloGalante</dc:creator>
      <dc:date>2016-01-21T19:34:31Z</dc:date>
    </item>
  </channel>
</rss>

