String photoPath = Capture.capturePhoto(640, 360);
This, however, works fine:
String photoPath = Caponeture.capturePhoto();
I can't either get the Image.scale method to work without the app freezing. Is there any way to resize a captured image on Windows Phone?
Many thanks
Image img = Image.createImage(imagePath);
Dialog.show("Created image", img.getWidth() + "x" + img.getHeight(), "OK", null);
EncodedImage encImg = EncodedImage.createFromImage(img, true);
Dialog.show("Created encoded image", encImg.getWidth() + "x" + encImg.getHeight(), "OK", null);
findImageLabel(c).setIcon(encImg);
c.getComponentForm().revalidate();