Infected PC !!! Check everything later

This commit is contained in:
2017-06-12 10:58:42 +02:00
parent 46034c1a04
commit c99f9e4f9d
3 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.selfomat</groupId>
<artifactId>selfomat-single-user</artifactId>
<version>0.4.0.13-SNAPSHOT</version>
<version>0.4.0.14-SNAPSHOT</version>
<scm>
<url>scm:svn:svn://simongehrig:L4ut5pr3ch3r!@svn.picture.tools/selfomat/trunk/selfomat-java-single-user</url>
+9 -5
View File
@@ -235,12 +235,16 @@ public class FilesWorker {
// Archive the Backup
archiveBackup();
// Update the State fot previews and thumbs
SOMEvent.getInstance().getImages();
SOMGUI.changetopicture();
}
// Update the State fot previews and thumbs
ScaleWorker.scale(SOMEvent.getInstance().getImages(), ScaleWorker.PREVIEW);
ScaleWorker.scale(SOMEvent.getInstance().getImages(), ScaleWorker.THUMBNAIL);
// In any case, internet or not, change to the pic scene
SOMGUI.changetopicture();
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
+6 -3
View File
@@ -14,6 +14,9 @@ import java.awt.image.CropImageFilter;
import java.awt.image.FilteredImageSource;
import java.io.File;
import java.io.IOException;
import java.util.List;
//import java.awt.*;
public class ScaleWorker extends Thread {
@@ -48,11 +51,11 @@ public class ScaleWorker extends Thread {
}
// Overload of scale() that lets you enter Arrays of Pictures
public static SOMImage[] scale(SOMImage[] somImages, int type) {
public static List<SOMImage> scale(List<SOMImage> somImages, int type) {
// loop through Array of SOMImages
for (SOMImage image : somImages) {
for (int i = 0; i < somImages.size(); i++) {
//update the image
image = scale(image, type);
scale(somImages.get(i), type);
}
// return the imagearray
return somImages;