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

21
LINES

< > BotCompany Repo | #1025226 // Test ScreenshotFromStream

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 974K of libraries. Click here for Pure Java version (7431L/40K).

1  
!7
2  
3  
// transpiler needs this on top level
4  
!include once #1025225 // Shared IntegralImage
5  
6  
cmodule Test > DynPrintLog {
7  
  start-thread {
8  
    bool first = true;
9  
    repeat 10 {
10  
      ScreenshotFromStream ss = dm_lastScreenshotFromStream();
11  
      print(ss);
12  
      if (ss != null && first) pcall {
13  
        first = false;
14  
        IntegralImage ii = ss.integralImage();
15  
        print(ii);
16  
        showImage(ii.getBufferedImage());
17  
      }
18  
      sleepSeconds(1);
19  
    }
20  
  }
21  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025226
Snippet name: Test ScreenshotFromStream
Eternal ID of this version: #1025226/6
Text MD5: 8d71f29caff3e650a035b87bd383862c
Transpilation MD5: cf58a95298c8f8813085d27347ad9637
Author: stefan
Category: javax / gui
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-13 18:29:55
Source code size: 487 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 240 / 990
Version history: 5 change(s)
Referenced in: [show references]