ThinkGeo.com    |     Documentation    |     Premium Support

GeoImage and Resource.Drawable

Hi



Is it possible to make a GeoImage from Resource.Drawable.xxxx ?

With stream?



Thanks

Laurent M


Hi 
 A response 
  
 
                    var dr = Application.Resources.GetDrawable(Resource.Drawable.info);
                    var bd = (BitmapDrawable)dr;
                    GeoImage geoImage = new GeoImage(bd.Bitmap);
 
 
  
 By 


Great! 
 Any questions, please feel free to let us know. 
  
 Thanks, 
 Troy

And how could I apply a color and size to GeoFont?

Hi Elton,

Here is the code snippet shows how to apply a color and size to a text.

layer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = new TextStyle("ColumnName", new GeoFont("Arial", 12, DrawingFontStyles.Bold), new GeoSolidBrush(GeoColor.SimpleColors.Black));
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

Actually, the GeoFont has no color property, we color the text by setting the color of GeoSolodBrush.

If i misunderstood anything, please provide more information.

Thanks,
Emil