我在这个视频中跟着创建了一个相机捕获页面的教程:http://www.youtube.com/watch?v=nF4eqzVcsic
所以我目前的代码看起来是这样的:
我查看了CameraDemo应用程序,但似乎找不到任何保存文件。
我希望所有拍摄的照片都保存在src文件夹中。
非常感谢您的帮助。 Ari
protected void onCamera_CaptureButtonAction(Component c, ActionEvent event) {
String i = Capture.capturePhoto();
if (i != null) {
try {
Image img = Image.createImage(i).scaledHeight(500);
findCameraLabel().setIcon(img);
} catch (Exception ex) {
}
}
}
我查看了CameraDemo应用程序,但似乎找不到任何保存文件。
我希望所有拍摄的照片都保存在src文件夹中。
非常感谢您的帮助。 Ari