About 614,000 results
Open links in new tab
  1. Lesson: Working with Images (The Java™ Tutorials > 2D Graphics) - Oracle

    Drawing the contents of a Java 2D image on to a drawing surface. Saving the contents of a Java 2D image to an external GIF, PNG, or JPEG image file. This lesson teaches you the basics of …

  2. Convert 2D array in Java to Image - Stack Overflow

    May 26, 2012 · I need to convert a 2D array of pixel intensity data of a grayscale image back to an image. I tried this: BufferedImage img = new BufferedImage( regen.length, regen[0].length, …

  3. Java Multi-Dimensional Arrays - GeeksforGeeks

    Apr 23, 2025 · Two-dimensional array is the simplest form of a multidimensional array. A 2-D array can be seen as an array storing multiple 1-D array for easier understanding. Syntax …

  4. ImageData is a library for reading an image into a 2D array of int values. load() takes the name of a file containing an image and returns an int[][] Can you guess how many rows are in the …

  5. Images in Java 2D - ZetCode

    Jul 17, 2023 · In this part of the Java 2D tutorial we work with images. BufferedImage is a fundamental class for working with images in Java 2D. It is a rectangle of pixels stored in …

  6. Java Multi-Dimensional Arrays - W3Schools

    To create a two-dimensional array, add each array within its own set of curly braces: myNumbers is now an array with two arrays as its elements. To access the elements of the myNumbers …

  7. 2D Array in Java: Configuring Two-Dimensional Arrays

    Oct 26, 2023 · To create a 2D array in Java, you use the following syntax: int[][] array = new int[rows][columns];. This creates a two-dimensional array with a specified number of rows and …

  8. Java - 2D Array Examples - Dot Net Perls

    Oct 1, 2024 · To understand 2D arrays, we need to review several steps. The syntax for 2D arrays uses 2 values to address an element. Step 1 We introduce a two-dimensional array of …

  9. Display image from 2D array data in java - Stack Overflow

    Oct 27, 2011 · What you would have to do is to create a BufferedImage of the desired size and then loop through your 2D intensity matrix and fill in the colors in the resulting image. Once …

  10. Different Ways To Declare And Initialize 2-D Array in Java

    Nov 13, 2024 · Initialize 2-D array in Java. data_type[][] array_Name = new data_type[row][col]; The total elements in any 2D array will be equal to (row) * (col). row: The number of rows in an …

  11. Some results have been removed
Refresh