Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > TinyBrain | #1007155 - Automatic Image Machine With Average Color Analysis

JavaX source code [tags: use-pretranspiled] - run with: x30.jar - homepage

Uses 2245K of libraries. Click here for Pure Java version (5757L/41K/146K).

!7

!include #1007154 // ImageMachine

p-substance-thread {
  new ImageMachine {
    ImageSurface isAvg;
    
    @Override void newImage(S text, BufferedImage img) {
      super.newImage(text, img);
      
      isAvg = showImage_centered(isAvg, "Average Color", new RGBImage(20, 20, rgbAverageColor(new RGBImage(img)));
      setAlwaysOnTop(isAvg);
    }
  }.start();
}

Author comment

Began life as a copy of #1007146

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1007155
Snippet name: Automatic Image Machine With Average Color Analysis
Eternal ID of this version: #1007155/4
Text MD5: 8adc8e818245bb423d366a90394895ee
Transpilation MD5: 60e4c40866d50469dc7ba79db9390856
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-18 14:19:30
Source code size: 386 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 42 / 40
Version history: 3 change(s)
Referenced in: [show]