This commit is contained in:
schilcher
2016-10-24 15:08:44 +02:00
parent f6693b081b
commit 851047aa13
6 changed files with 47 additions and 21 deletions

View File

@@ -1792,7 +1792,15 @@ public class ScreenPanel extends Panel {
//byte[] arr = (byte[]) (((DataBufferByte)(Utils.grayscale(renderer.getImage()).getRaster().getDataBuffer())).getData());
//Object image = Convert.toBidimensional(arr, renderer.getImage().getWidth(), renderer.getImage().getHeight());
//getController().getDataManager().setDataset("/image", image);
elog("ScreenPanel Snapshot", "Data file: " + getController().getExecutionContext().getPath(), new String[]{snapshotFile});
StringBuilder message = new StringBuilder();
message.append("Camera: ").append(cameraName).append(" (").
append((camera instanceof Camtool) ? "camtool" : "direct").append(")").append("\n");
message.append("Data file: ").append(getController().getExecutionContext().getPath()).append("\n");
if ((fitOv != null) && (fitOv.length>3)){
Overlays.Text text = (Overlays.Text) fitOv[3];
message.append(text.getText()).append("\n");
}
elog("ScreenPanel Snapshot", message.toString(), new String[]{snapshotFile});
} catch (Exception ex) {
ex.printStackTrace();