mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 05:00:54 +00:00
exporting selected images
swt library loading UI depends on system
This commit is contained in:
@@ -393,7 +393,7 @@ public class SWF {
|
||||
}
|
||||
}
|
||||
|
||||
private String getImageFormat(byte data[]) {
|
||||
private static String getImageFormat(byte data[]) {
|
||||
if (hasErrorHeader(data)) {
|
||||
return "jpg";
|
||||
}
|
||||
@@ -426,14 +426,7 @@ public class SWF {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void exportImages(String outdir) throws IOException {
|
||||
JPEGTablesTag jtt = null;
|
||||
for (Tag t : tags) {
|
||||
if (t instanceof JPEGTablesTag) {
|
||||
jtt = (JPEGTablesTag) t;
|
||||
}
|
||||
}
|
||||
|
||||
public static void exportImages(String outdir, List<Tag> tags, JPEGTablesTag jtt) throws IOException {
|
||||
for (Tag t : tags) {
|
||||
if ((t instanceof DefineBitsJPEG2Tag) || (t instanceof DefineBitsJPEG3Tag) || (t instanceof DefineBitsJPEG4Tag)) {
|
||||
byte imageData[] = null;
|
||||
@@ -496,4 +489,15 @@ public class SWF {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void exportImages(String outdir) throws IOException {
|
||||
JPEGTablesTag jtt = null;
|
||||
for (Tag t : tags) {
|
||||
if (t instanceof JPEGTablesTag) {
|
||||
jtt = (JPEGTablesTag) t;
|
||||
}
|
||||
}
|
||||
exportImages(outdir, tags, jtt);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user