From 9a17910862e82b1bd8c341c901c086bb86214dca Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 25 Dec 2023 11:49:01 +0900 Subject: [PATCH] =?UTF-8?q?save=E3=81=AE=E4=B8=AD=E8=BA=AB=E3=82=92?= =?UTF-8?q?=E5=AE=9F=E8=A3=85=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index fada1148..559c41de 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -85,8 +85,12 @@ public class FileManagerImpl implements FileManager { } @Override - public void saveBitmapAtCurrent(Bitmap bitmap, String fileName) { - this.currentDir + public void saveBitmapAtCurrent(Bitmap bitmap, String fileName) { // TODO-rca: ファイル形式を変更できるようにする? + try { + Files.write(currentDir.resolve(fileName), bitmap.toString().getBytes()); // TODO-rca: エラーハンドリング + } catch (IOException e) { + e.printStackTrace(); + } } @Override