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

13
LINES

< > BotCompany Repo | #1035740 // JG22DataWrangler [dev.] - "data wrangler" is Gazelle's vectorizing (and posterizing) image compressor

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

Transpiled version (16562L) is out of date.

1  
sclass JG22DataWrangler is Swingable {
2  
  new TargetAndActual<Double> maxKB; // kilobytes per compressed image (pessimistic estimate)
3  
  new TargetAndActual<Double> coveredPixelsPercentage;
4  
  new TargetAndActual<Double> detailLevel;
5  
  
6  
  cachedVisualize {
7  
    var form = new JForm;
8  
    //form.addRow("Image source", jlabel("Left screen half"));
9  
    form.addRow("Compressed image size (KB)", new JTargetAndActualSlider(maxKB));
10  
    form.addRow("Detail level", new JTargetAndActualSlider(detailLevel, false)
11  
    ret form.visualize();
12  
  }
13  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035740
Snippet name: JG22DataWrangler [dev.] - "data wrangler" is Gazelle's vectorizing (and posterizing) image compressor
Eternal ID of this version: #1035740/6
Text MD5: a3423243f818dec90739bc7f423ad061
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-20 04:29:49
Source code size: 547 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 219
Version history: 5 change(s)
Referenced in: [show references]