gforg
gforg

Reputation: 263

how to resize image in WP7

I capture an image using the photo or camera task and I want to resize the image to say example 480x240 from the captured size of around 2592x1944. how do I do this ? thanks

Upvotes: 0

Views: 1914

Answers (1)

Rene Schulte
Rene Schulte

Reputation: 2962

You can pass the JPEG stream you get from the Completed event to the PictureDecoder.DecodeJpeg method. The second and the third parameters define the size. You will get a WriteableBitmap that can be manipulated further and saved back to the MediaLibrary. See this blog post for some example.

Upvotes: 3

Related Questions