Closedown
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#Fri Aug 26 15:50:34 CEST 2016
|
||||
#Fri Aug 26 16:05:48 CEST 2016
|
||||
colormap=Grayscale
|
||||
colormapAutomatic=false
|
||||
colormapMax=255.0
|
||||
@@ -6,8 +6,8 @@ colormapMin=0.0
|
||||
flipHorizontally=false
|
||||
flipVertically=false
|
||||
grayscale=false
|
||||
imageHeight=2160
|
||||
imageWidth=2560
|
||||
imageHeight=1628
|
||||
imageWidth=1280
|
||||
invert=false
|
||||
rescaleFactor=1.0
|
||||
rescaleOffset=0.0
|
||||
|
||||
@@ -138,6 +138,8 @@ public class Cameras extends Panel {
|
||||
if (camera!=null){
|
||||
camera.close();
|
||||
camera = null;
|
||||
renderer.setDevice(null);
|
||||
renderer.clear();
|
||||
}
|
||||
try{
|
||||
Path configFile= Paths.get(configFolder, cameraName + ".json");
|
||||
@@ -175,9 +177,12 @@ public class Cameras extends Panel {
|
||||
camera.addListener(new ImageListener() {
|
||||
@Override
|
||||
public void onImage(Object o, BufferedImage bi, Data data) {
|
||||
if ((renderer.getReticle()!=null) && (bi!=null)){
|
||||
renderer.getReticle().setSize(new Dimension(bi.getWidth(), bi.getHeight()));
|
||||
}
|
||||
if (renderer.getReticle()!=null){
|
||||
if (bi==null){
|
||||
return;
|
||||
}
|
||||
renderer.getReticle().setSize(new Dimension(bi.getWidth(), bi.getHeight()));
|
||||
}
|
||||
camera.removeListener(this);
|
||||
}
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user