This commit is contained in:
Glavo 2025-08-02 15:21:18 +08:00
parent 354c531f5c
commit 08d2de6e4c

View File

@ -925,7 +925,10 @@ public final class FXUtils {
}
}
return new Image(Channels.newInputStream(channel), requestedWidth, requestedHeight, preserveRatio, smooth);
Image image = new Image(Channels.newInputStream(channel), requestedWidth, requestedHeight, preserveRatio, smooth);
if (image.isError())
throw image.getException();
return image;
}
});
}