diff --git a/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamImageView.java b/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamImageView.java index a2d6c423a7c..807b306b175 100644 --- a/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamImageView.java +++ b/debugger/src/main/java/org/apache/pdfbox/debugger/streampane/StreamImageView.java @@ -99,8 +99,8 @@ JComponent getView() private Image zoomImage(BufferedImage origin, float scale, int rotation) { BufferedImage rotatedImage = ImageUtil.getRotatedImage(origin, rotation); - int resizedWidth = (int) (rotatedImage.getWidth() * scale); - int resizedHeight = (int) (rotatedImage.getHeight() * scale); + int resizedWidth = (int) Math.ceil(rotatedImage.getWidth() * scale); + int resizedHeight = (int) Math.ceil(rotatedImage.getHeight() * scale); return rotatedImage.getScaledInstance(resizedWidth, resizedHeight, Image.SCALE_SMOOTH); }