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.

sclass JG22DataWrangler is Swingable {
  new TargetAndActual<Double> maxKB; // kilobytes per compressed image (pessimistic estimate)
  new TargetAndActual<Double> coveredPixelsPercentage;
  new TargetAndActual<Double> detailLevel;
  
  cachedVisualize {
    var form = new JForm;
    //form.addRow("Image source", jlabel("Left screen half"));
    form.addRow("Compressed image size (KB)", new JTargetAndActualSlider(maxKB));
    form.addRow("Detail level", new JTargetAndActualSlider(detailLevel, false)
    ret form.visualize();
  }
}

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: 148 / 218
Version history: 5 change(s)
Referenced in: #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167)