bufferedimage Questions

8

Solved

Following the javadocs, I have tried to scale a BufferedImage without success here is my code: BufferedImage image = MatrixToImageWriter.getBufferedImage(encoded); Graphics2D grph = image.createGr...
Broth asked 18/11, 2010 at 14:59

9

Solved

I have an object which has many bufferedimages in it, I want to create a new object copying all the bufferedimages into the new object, but these new images may be altered and i don't want the orig...
Huntington asked 18/8, 2010 at 16:10

6

Solved

I have a Java project called MyProject. I have a few different packages (keeping names simple for the purpose of this question), as follows: src/PackageA src/PackageA/PackageAa src/PackageA/Packag...
Kurdish asked 28/8, 2012 at 6:6

2

Solved

I'm trying to convert a PDF doc to .png files using PDFBox. I followed this answer to get an idea of what dependencies were needed and to give me a starting point. When I try to loop through the pa...
Misconceive asked 13/9, 2016 at 19:1

2

Solved

I'm trying to convert an JavaFX Image(from ImageView) to an BufferedImage. I tried casting and stuff but nothing works. Can someone suggest how i should do this?
Diphyodont asked 4/2, 2014 at 0:0

12

This is a question that has been asked like 100 times on this site, but I have looked at all of them and even though they all were solved, none of the solutions worked for me. Here's what my code...
Etruscan asked 15/3, 2013 at 4:36

4

Solved

I am having trouble getting a rotated BufferedImage to display. I think the rotation is working just fine, but I can't actually draw it to the screen. My code: Class extends JPanel { BufferedImag...
Tonnage asked 7/2, 2011 at 6:4

3

Solved

I am trying to find image in an image. I do this for desktop automation. At this moment, I'm trying to be fast, not precise. As such, I have decided to match similar image solely based on the same ...
Caundra asked 27/1, 2015 at 2:56

4

I am trying to rotate a buffered image in java. Here is the code I am using: public static BufferedImage rotate(BufferedImage bimg, double angle) { int w = bimg.getWidth(); int h = bimg.getHeight...
Ploss asked 10/6, 2016 at 22:37

5

Solved

I'm trying to get a screenshot output as a base64 encoded string but not getting very far. The code I have so far uses a Base64 library ( http://iharder.sourceforge.net/current/java/base64/ ): Ro...
Ind asked 24/8, 2011 at 16:25

6

Solved

I have an off-screen BufferedImage, constructed with the type BufferedImage.TYPE_INT_ARGB. It can contain anything, and I'm looking for a way to (fairly efficiently) completely overwrite the image ...
Intra asked 15/4, 2011 at 5:26

9

Solved

How can I convert a BufferedImage to a Mat in OpenCV? I'm using the JAVA wrapper for OpenCV(not JavaCV). As I am new to OpenCV I have some problems understanding how Mat works. I want to do som...
Asarum asked 19/2, 2013 at 13:24

9

Solved

I made this code to resize images with two factors. It works, but the quality of image is very bad after it is resized! Can you help me? This is the code public class ImageTest { private static ...
Adagio asked 31/10, 2011 at 8:25

4

Solved

In my web application I have an image uploading module. I want to check the uploaded file whether it's an image file or any other file. I am using Java in server side. The image is read as Buffere...
Warner asked 12/11, 2010 at 22:39

7

Solved

I'm looking for the fastest way to get pixel data (int the form int[][]) from a BufferedImage. My goal is to be able to address pixel (x, y) from the image using int[x][y]. All the methods I have f...
Neri asked 29/6, 2011 at 16:41

4

So I am attempting to create an application that can black-out sections of a survey that contains sensitive information. However I've run into a bit of a problem. What I want to do is draw filled b...
Apotropaic asked 24/7, 2012 at 16:4

4

Solved

I want to display variations of the same image in the same JFrame, for example display an image in JFrame, then replace it with gray scale of the same image.
Leucas asked 26/10, 2009 at 19:8

2

I'm trying to perform OCR on pdfs. There are 2 steps in the code: Convert pdf to tiff files Convert tiff to text I used ghost4j for the first step, and then tess4j for the second one. all worked ...
Lsd asked 7/1, 2020 at 10:49

4

Solved

I have a program in which i capture the screen using the code : robot = new Robot(); BufferedImage img = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize())); No...
Ranchero asked 13/6, 2011 at 13:26

4

Solved

Does anyone know how to print a BufferedImage in Java?
Xebec asked 12/3, 2011 at 16:43

3

Solved

I have a Data-URL from an image file and have to pass it through to another function. Along this path from Data-URL to the BufferedImage it needs to be a byteArray. my approach was the following: ...
Fadden asked 2/9, 2013 at 9:17

1

So my goal is to have a window that opens where you can draw some lines on a white background by just clicking. The problem is that when it try to save it always comes back as a png, but it comes a...
Nonlegal asked 2/11, 2019 at 21:26

4

Solved

I am looking to rotate an image. I have a JInternalFrame which contains a JLabel. The label contains the image. After the image has been rotated, I need to resize the internal frame. The code I hav...
Extractive asked 11/11, 2010 at 16:13

5

Solved

I'm saving the image of a signature as a .jpg picture. I use graphic2d to paint on the image every pixel of the signature (gotten with a signature tablet) and it works perfectly but I'm always gett...
Psychopathology asked 24/6, 2013 at 9:9

5

Solved

I need to create a rectangular BufferedImage with a specified background color, draw some pattern on the background and save it to file. I don't know how to create the background. I am using a nes...
Fylfot asked 17/9, 2009 at 19:5

© 2022 - 2024 — McMap. All rights reserved.