bufferedimage
BufferedImage & createScreenCapture produces wrong colors
In my Java program I need to analyze a color of a pixel in given coordinates. Because of the fact that I need to do it often, first I capture a part of the screen, and then get a pixel color. I am doi[详细]
2023-03-16 08:02 分类:问答Java - Add padding to large images
I need to add specific padding around large images and the current method I am using, as seen in the snippet below, is eating up memory. Opening the PNG sucks up ~300mb of memory right off the bat and[详细]
2023-03-15 14:20 分类:问答How do I desaturate a BufferedImage in Java?
What\'s the simplest way to desaturate a BufferedIma开发者_StackOverflow中文版ge?Use ColorConvertOp:[详细]
2023-03-15 01:10 分类:问答Java : BufferedImage to Bitmap format
I have a program in which i capture the screen using the code : robot = new Robot(); BufferedImage img = robot.createScreenCapture(new Rectangle(Toolkit.getDef开发者_运维百科aultToolkit().getScreenSi[详细]
2023-03-13 02:57 分类:问答Is accessing BufferedImage thread safe
In Java, I have 2 threads that are both accessing (not modifying) the same BufferedImage. I\'m simply drawing the buffered image into a separate Graphics2D objects with code like this.[详细]
2023-03-12 07:58 分类:问答Convert YUV webcam image to java byte array
In 开发者_如何学PythonJava, what is the most efficient way of converting a frame of PC webcam image data in YUV (I420 or YUY2) format to a byte (or integer) array?Don\'t know about java, but this is h[详细]
2023-03-12 03:06 分类:问答Using several bufferedImages in java
I\'m making a game in a java applet and I\'m trying to optimise my code to reduce flickering. I\'ve already implemented double buffering, so I\'m trying to use another BufferedImage in order to store[详细]
2023-03-10 06:43 分类:问答How to read big bufferedimage
I am reading a 100 MB pict开发者_如何学Goure into my app. It works fine inside Eclipse, but not when I export project to a JAR. Then, I get \"Can\'t read input file!\"[详细]
2023-03-10 04:58 分类:问答Crop image in Java with a class?
I have been attempting to do this for about a week. Every single time I have tried something it failed. So I turned to copying others code... they said the code worked for them... yet it failed for me[详细]
2023-03-09 09:46 分类:问答Painting in a BufferedImage inside Swing
Im working on a paint application written in java and running into a few (more) problems. I have a gui and a working program(kinda), my only problem is that the lines and graphics that the user draws[详细]
2023-03-08 05:50 分类:问答