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

16
LINES

< > BotCompany Repo | #1007155 // Automatic Image Machine With Average Color Analysis

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

Uses 4489K 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  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

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: 436 / 531
Version history: 3 change(s)
Referenced in: [show references]