I am using the following code in Windows Phone 7 to save a JPEG image with a specific size:
WriteableBitmap wBitmap = new WriteableBitmap(resizedImage);
MemoryStream m = new MemoryStream();
wBitmap.SaveJpeg(m, h, w, 0, 100);
I am getting the error:
"WritableBitmap does contain a definition for SaveJpeg"
How do I do the same thing on a desktop Windows Forms app with C#?
Here’s how you would do this (okay, was facetious, now am srs) using the JpegBitmapEncoder