WriteableBitmap bmpWritable = new WriteableBitmap(bmp);
MemoryStream ms = new MemoryStream();
Extensions.SaveJpeg(bmpWritable, ms, newWidth, newHeight, 0, 100);
I would suggest you resize it proportionally. Hope this helps.
And also, You need not to have two separate tasks for taking image from Camera and from gallery. For PhotoChooserTask
itself, you can set ShowCamera
attribute to true. This will display a camera button when in ApplicationBar when you open gallery