Reputation: 263
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
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