Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For item one, you should be able to merge as many images together using the Blit method from the <a href="http://writeablebitmapex.codeplex.com/" rel="nofollow">WriteableBitmapEx</a> project. Since you can merge your images together in any way you want, you can ensure they cover wide tile widths and any ppi you need.</p> <p>To cover the second item, the following will overlay text on an image:</p> <pre><code>private static ImageSource createBitmapImageWithImage(string text, int x, int y, Color textColor, BitmapSource bitmapSource) { using(var mem = new MemoryStream()) { //Create Formatted Text var textBlock = new TextBlock { Text = text, Foreground = new SolidColorBrush(textColor), FontFamily = new FontFamily("Courier New"), FontSize = 40 }; //Moves an object two dimensionally var tf = new TranslateTransform { X = x, Y = y }; //Overlay text on existing image var bmpImage = new WriteableBitmap(bitmapSource); bmpImage.Render(textBlock, tf); bmpImage.Invalidate(); //Convert back into bitmap bmpImage.SaveJpeg(mem, bmpImage.PixelWidth, bmpImage.PixelHeight, 0, 100); mem.Seek(0, SeekOrigin.Begin); var image = new BitmapImage(); image.SetSource(mem); return image; } } </code></pre> <p>Of course you can pass in the text block too, or the options to configure the text block. But I wanted to show how you can format the text however you want.</p> <p>Your third request is covered by <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942%28v=vs.105%29.aspx" rel="nofollow">background tasks</a>. In your phone solution, add a new project and you can select background task. It is fairly straightforward to have this call your code to update the images. Nokia even created a <a href="http://www.developer.nokia.com/Community/Wiki/How_to_create_simple_Background_Agent_in_Windows_Phone" rel="nofollow">walk through</a> on how to add one with code examples.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload