2,155 questions
-2 votes
1 answer
136 views
Is there a way to display a scaled BufferedImage that looks identical to a full-resolution Robot screencapture?
I am trying to display a screen capture as an ImageIcon on a JLabel. To generate the BufferedImage object I used a Robot object along with a MultiResultionScreenCapture. As noted in this Stackoverflow ...
0 votes
0 answers
70 views
How can I render large Files/ Thousand of pages using the conversion of PDF files to Buffered image?
This is my model for document: public class PdfDocumentModel { private final PDDocument document; private float dpi = 110; // Constructor accepts InputStream ...
0 votes
0 answers
69 views
How can I load and render a thousand of pages or a big file when I make the PDF to a buffered image?
This is the implementation: View model Class: private static final int CACHE_SIZE = 10; // Set cache size to 10 pages to avoid excessive memory usage public PdfViewModel() { currentPage....
0 votes
0 answers
69 views
How can I fix transparent lines in my scaled images (Javax.swing)?
I am trying to make a small games with a native resolution of 320x180, then scale it up for a bigger window. but I'm getting transparent lines in my sprites. right now I'm drawing to a BufferedImage ...
0 votes
0 answers
48 views
Java free(): double free detected in tcache2 when using BufferedImage
got an interesting issue I am trying to figure out. No other logs are provided in this crash. It also gets double free or corruption (fasttop) on an occasion Its worth mentioning I do understand what ...
1 vote
0 answers
64 views
BufferedImage.Type_INT_RGB and BufferedImage.TYPE_INT_ARGB drawing differently?
I noticed that when trying to draw a square with a black border for BufferedImage graphics it works fine if it is instantiated as TYPE_INT_RGB but it deforms if the BufferedImage was made as ...
0 votes
1 answer
91 views
Changing pixels in a Java BufferedImage to transparent
I have a BufferedImage that gets passed into my function (so I don't really know how it's created) and I need to change all of the white pixels to transparent pixels. I'm successfully identifying the ...
0 votes
0 answers
53 views
how to find the normal vector of a drawn (made of squares/pixels) surface?
I have a project where I need to implement physics with drawn structures. I need to come up with or find an existing algorithm that can find the normal vector at a point on the surface of an image (...
0 votes
1 answer
298 views
fluent-ffmpeg vstack passthrough stream of buffered images
I am all day stuck at this issue. I have an array of buffered images and i need a script to concat them on top of each other. I tried to do this using the sharp package, but since I am already using ...
0 votes
1 answer
70 views
How can I make the image clear and fine even I zoom in and zoom out?
enter image description here - Original position of image enter image description here- Zoom in image How can I make text and words readable, clear, good quality image? Source code: private Pane ...
0 votes
0 answers
49 views
ArrayIndexOutOfBoundsException with Bounds Check
I am trying to make a fuzzy select tool for an image editing application and have run into an odd problem. It is giving me an ArrayIndexOutOfBoundsException, at index -1, while x is 0, (it has 1 ...
0 votes
1 answer
68 views
How do I get the data in the speciified region defining a java BufferedImage.getSubimage?
I have the following code extracting a sub-image from a JAVA BufferedImage (8-bit grayscale): // create BufferImage from original image (480px x 400px) BufferedImage img = new BufferedImage(origImage....
0 votes
1 answer
126 views
Java BufferedImage: Drawing a pixel art image at its original pixel size causes pixel distortion
I am messing around with BufferedImages and I wanted to see if drawing an Pixel Art image at its original size and scaling it would be possible. Before I even got to resizing it, I noticed that ...
0 votes
2 answers
93 views
Fast Way to Convert BufferedImage Pixels with a Specific Color into an Area
I am making an image editing application using Java and would like to make a select-by-color tool. A select-by-color tool makes my variable selection, a subclass of Area, highlight pixels in the ...
0 votes
1 answer
70 views
Buffered Image wont draw but will load
import java.awt.image.BufferedImage; import java.io.File; import java.util.*; import javax.swing.Timer; import javax.imageio.ImageIO; import javax.swing.*; import java.awt.*; import java.awt.event.*; ...