About 2,750,000 results
Open links in new tab
  1. java - Resize a picture to fit a JLabel - Stack Overflow

    May 2, 2013 · The best and easy way for image resize using Java Swing is: jLabel.setIcon(new ImageIcon(new …

  2. 3 Ways to Resize Images in Java - Cloudinary

    Apr 11, 2025 · Java provides several techniques for programmatic bulk image resize, including the getScaledInstance () method and the Graphics2D class. We’ll also show how to use …

  3. How to resize an image in Java - Mkyong.com

    Sep 29, 2009 · This article shows two ways to resize an image (create a thumbnail) in Java. 1. Original Image, 544×184. Below is a Google logo image, width, height 544x184, and file size …

  4. How Can I Resize an Image Using Java? - Baeldung

    Mar 26, 2025 · In this tutorial, we’re going to learn how to resize (scale) an image using Java. We’ll explore both core Java and open-source third-party libraries that offer the image resize …

  5. Gr – 11/12 GUI images problem - java-teacher.com

    Nov 28, 2022 · You can fix this problem by getting rid of path and leaving the image name only e.g. “background.jpg”. Without the path, Java will look in the current project folder. How to do …

  6. How to Resize an Image in Java - Delft Stack

    Feb 2, 2024 · In the following examples, we’ll demonstrate how you can resize an image in Java using three techniques. Resize and Show an Image in Java Using …

  7. swing - Resizing image in Java - Stack Overflow

    May 21, 2019 · If you have an java.awt.Image, resizing it doesn't require any additional libraries. Just do: Image newImage = yourImage.getScaledInstance(newWidth, newHeight, …

  8. Java Resize Image to Fixed Width and Height Example

    Oct 24, 2017 · In this tutorial we show a Java Resize Image to Fixed Width and Height Example. We can resize an image using different algorithms. Each algorithm focuses on a different …

  9. How to Resize an Image in Java: A Step-by-Step Guide

    Resizing an image in Java can be efficiently accomplished using the `BufferedImage` and `Graphics2D` classes, both part of the standard Java AWT and Swing libraries. In this guide, …

  10. java - Stretch Image in JLabel [SOLVED] | DaniWeb - DaniWeb

    Try looking at the API docs for BufferedImage (and Graphics2D) and see if there is something there that can help you. I tryed the following Code but it can't work. …

  11. Some results have been removed
Refresh