Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Tyler - You mention that on initial launch, the application does retrieve the images from an IP address (on the internet I presume)?</p> <blockquote> <p>This means on first time setup after a user has entered the IP address of the image store I can ask them to wait a few minutes while it's all retrieved/resized/cached. From then on they can have nice and snappy performance.</p> </blockquote> <p>If that is correct, what I think some of the answers have suggested in creating a proxy is actually a feasible solution. I would structure it like this:</p> <p>Your App -> Web Request to Proxy Handler</p> <pre><code>string imageUrl = HttpUtility.UrlEncode("http://[user's_ip]/path_to_image.png"); http://domain.com/your_proxy.ashx?users_image_url=imageUrl </code></pre> <p>Your proxy handler on the back end should request the image, resize it, and return the resized image back to your application.</p> <p>Your App -> Cache the Returned Resized Image</p> <p>Loop as needed...</p> <p>UPDATED:</p> <p>It turns out there is a way to resize images on WP7 outside of the UI thread using the native WriteableBitmap class. There is a method called .SaveJpeg() that allows this, and we're using it currently in our WP7 application CitySourced. Your code should look something like this:</p> <pre><code>wb.SaveJpeg(stream, width, height, orientation, quality); </code></pre> <p>The only bummer is that it only works by writing a .JPG file and there's no .PNG support. Let me know if this works for your use case.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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