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

17
LINES

< > BotCompany Repo | #1006376 // Find scroll bar << that was the plan, but seems to find TEXT instead

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

Libraryless. Click here for Pure Java version (4439L/30K/102K).

1  
!7
2  
3  
static int cn = 3, cw = 20;
4  
5  
p {
6  
  RGBImage rgb = loadImage(#1006358);
7  
  int h = rgb.h();
8  
  float[] data = new float[h];
9  
  for y to h:
10  
    data[y] = min(stripe(rgb, 0, y), stripe(rgb, 1, y), stripe(rgb, 2, y));
11  
  showImageWithVerticalGraph(rgb, data);
12  
}
13  
14  
static float stripe(RGBImage rgb, int x, int y) {
15  
  int x1 = iround(rgb.w()/(float)(cn*2)*(x+1));
16  
  ret rgbContrast(rgb.clip(x1-cw/2, y, cw, 1));
17  
}

Author comment

Began life as a copy of #1006370

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: #1006376
Snippet name: Find scroll bar << that was the plan, but seems to find TEXT instead
Eternal ID of this version: #1006376/1
Text MD5: b5ff546ead69118fd3d8a9ddcba89a16
Transpilation MD5: 820da362a4f8886084382b9cfcb7e491
Author: stefan
Category: javax / imaging
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-29 23:31:38
Source code size: 422 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 458 / 517
Referenced in: [show references]