Libraryless. Click here for Pure Java version (8911L/51K).
1 | static BufferedImage scaledBufferedImageFromIntegralImage_withMeta(int w, IIntegralImage img) { |
2 | ret scaledBufferedImageFromIntegralImage_withMeta(img, w); |
3 | } |
4 | |
5 | static BufferedImage scaledBufferedImageFromIntegralImage_withMeta_height(int h, BufferedImage img) { |
6 | ret scaledBufferedImageFromIntegralImage_withMeta_height(h, integralImage(img)); |
7 | } |
8 | |
9 | static BufferedImage scaledBufferedImageFromIntegralImage_withMeta_height(int h, IIntegralImage img) { |
10 | ret scaledBufferedImageFromIntegralImage_withMeta(img, widthForHeight(img, h), h); |
11 | } |
12 | |
13 | static BufferedImage scaledBufferedImageFromIntegralImage_withMeta(IIntegralImage img, int w, int h default heightForWidth(img, w)) { |
14 | ScaledBufferedImageFromIntegralImage x = new(img, w, h); |
15 | x.run(); |
16 | ret setMetaSrc(x.result, x); |
17 | } |
Began life as a copy of #1033681
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034887 |
Snippet name: | scaledBufferedImageFromIntegralImage_withMeta (+_height) |
Eternal ID of this version: | #1034887/3 |
Text MD5: | b1e0600922eba00f2a9e0adf91e1fab1 |
Transpilation MD5: | 1cba01e6ede8b01b6f77a602dde69bb2 |
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:25:10 |
Source code size: | 795 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 167 / 229 |
Version history: | 2 change(s) |
Referenced in: | [show references] |