What are the advantages of converting a buffered image into an array of integers?I assume that i can manipulate the array and cross process the picture .Is that so?
-
Tag the language you're talking about (Java?).PherricOxide– PherricOxide2012-10-13 09:00:32 +00:00Commented Oct 13, 2012 at 9:00
-
1How does "cross process the picture" differ from "process the picture"? What does 'cross' mean here?Andrew Thompson– Andrew Thompson2012-10-13 10:16:15 +00:00Commented Oct 13, 2012 at 10:16
-
Yes i meant processing the picture as in adjusting RGB colours:)user1720616– user17206162012-10-14 10:07:19 +00:00Commented Oct 14, 2012 at 10:07
-
@PherricOxide sorry my bad.I added the tag later as per your suggestion.user1720616– user17206162012-10-14 10:10:29 +00:00Commented Oct 14, 2012 at 10:10
Add a comment
|
3 Answers
I think you are referring to getRgb() method of BufferedImage class.
Supposing you want to modify the whole image or a big portion of it, retrieving the pixel array, and perform operations on it could be considerely faster than accessing each single pixel through method calls such as setRgb().
Comments
SwingX introduces the AbstractFilter class for BufferedImage. Here is an example:
For simple editing use one of this examples: