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

13
LINES

< > BotCompany Repo | #1033681 // scaledBWImageFromBWIntegralImage_withMeta (+_height)

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

Transpiled version (13349L) is out of date.

static BWImage scaledBWImageFromBWIntegralImage_withMeta(int w, IBWIntegralImage img) {
  ret scaledBWImageFromBWIntegralImage_withMeta(img, w);
}
  
static BWImage scaledBWImageFromBWIntegralImage_withMeta_height(int h, IBWIntegralImage img) {
  ret scaledBWImageFromBWIntegralImage_withMeta(img, widthForHeight(img, h), h);
}
  
static BWImage scaledBWImageFromBWIntegralImage_withMeta(IBWIntegralImage img, int w, int h default heightForWidth(img, w)) {
  ScaledBWImageFromBWIntegralImage x = new(img, w, h);
  x.run();
  ret setMetaSrc(x.result, x);
}

Author comment

Began life as a copy of #1033677

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033681
Snippet name: scaledBWImageFromBWIntegralImage_withMeta (+_height)
Eternal ID of this version: #1033681/8
Text MD5: e3747aa99ecab0a206f975d9debc6d50
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-13 01:19:30
Source code size: 567 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 267
Version history: 7 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034887 - scaledBufferedImageFromIntegralImage_withMeta (+_height)