mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
saveの中身を実装 WIP
This commit is contained in:
parent
8441b88ab3
commit
9a17910862
|
@ -85,8 +85,12 @@ public class FileManagerImpl implements FileManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void saveBitmapAtCurrent(Bitmap bitmap, String fileName) {
|
public void saveBitmapAtCurrent(Bitmap bitmap, String fileName) { // TODO-rca: ファイル形式を変更できるようにする?
|
||||||
this.currentDir
|
try {
|
||||||
|
Files.write(currentDir.resolve(fileName), bitmap.toString().getBytes()); // TODO-rca: エラーハンドリング
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user