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

5
LINES

< > BotCompany Repo | #1027242 // imageRecog_extractElementFromImageFile (using .infos file)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6936L/46K).

1  
static BufferedImage imageRecog_extractElementFromImageFile(File f, S elementName) {
2  
  S info = fileInfoField(f, elementName);
3  
  if (!structureIsOfTypeShortNamed Rect(info)) null;
4  
  ret clipBufferedImage(loadImage2(f), safeUnstructureRect(info));
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027242
Snippet name: imageRecog_extractElementFromImageFile (using .infos file)
Eternal ID of this version: #1027242/4
Text MD5: db88441a887e81a02891a689d5900aab
Transpilation MD5: 77fb604a7f7a23948eda1d31c4b0a6d3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-26 16:18:17
Source code size: 252 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 186 / 276
Version history: 3 change(s)
Referenced in: [show references]