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

12
LINES

< > BotCompany Repo | #1005946 // sendImageToProgram - hotwire program with image

JavaX fragment (include)

1  
static void sendImageToProgram(ImageIcon img, S progID) {
2  
  sendImageToProgram(img.getImage(), progID);
3  
}
4  
5  
static void sendImageToProgram(final Image img, final S progID) {
6  
  thread "Sending image to program" {
7  
    Class c = hotwire(progID);
8  
    O bwImage = nuForeignObject(c, "main$BWImage", img);
9  
    set(c, "img", bwImage);
10  
    callMain(c);
11  
  }
12  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005946
Snippet name: sendImageToProgram - hotwire program with image
Eternal ID of this version: #1005946/1
Text MD5: e4ed3f65c671bf713ad81a88eed9d058
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 03:03:52
Source code size: 360 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 570 / 571
Referenced in: [show references]