background color - Bitmap in org.mapsforge.core.graphics.Bitmap -


i used code showing text on map :

org.mapsforge.core.graphics.bitmap bitmap=null;             bitmap=     androidgraphicfactory.converttobitmap(textasbitmap(string.valueof(vehiclecode1), 45, color.black));             bitmap.setbackgroundcolor(color.yellow); 

if remove line:

  bitmap.setbackgroundcolor(color.yellow); 

on map see text want yellow background under text, when add line:

 bitmap.setbackgroundcolor(color.yellow);  

i see yellow rectangle on map. want yellow rectangle text. should do? in advance

maybe setting color before initalizing text. (u know, maybe app applying text , after tht overlaying color)


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -