diff options
Diffstat (limited to 'qadevOOo/runner/convwatch/PixelCounter.java')
-rw-r--r-- | qadevOOo/runner/convwatch/PixelCounter.java | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/qadevOOo/runner/convwatch/PixelCounter.java b/qadevOOo/runner/convwatch/PixelCounter.java index 29c244d57465..240e973e3282 100644 --- a/qadevOOo/runner/convwatch/PixelCounter.java +++ b/qadevOOo/runner/convwatch/PixelCounter.java @@ -75,23 +75,7 @@ class CountNotBlack extends CountPixel class graphics_stuff { - public int stuff() - { -// (1) decoding - int rgba = 0; // ...; // comes from PixelGrabber, BufferedImage.getRGB etc. - int red = (rgba >> 16) & 0xff; - int green = (rgba >> 8) & 0xff; - int blue = rgba & 0xff; - int alpha = (rgba >> 24) & 0xff; -// (2) now modify red, green, blue and alpha as you like; -// make sure that each of the four values stays in the -// interval 0 to 255 -// ... -// (3) and encode back to an int, e.g. to give it to MemoryImageSource or -// BufferedImage.setRGB - rgba = (alpha << 24) | (red << 16) | (green << 8) | blue; - return 0; - } + private static void countPixel(ImageHelper img, int _w, int _h, CountPixel _aPixelCounter) { |