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

7
LINES

< > BotCompany Repo | #1032176 // iiPadCenter - place integral image in the center, black border around

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

Libraryless. Click here for Pure Java version (5899L/33K).

static IIntegralImage iiPadCenter(IIntegralImage etc inner, int w, int h) {
  int diffX = w-inner.getWidth();
  int diffY = h-inner.getHeight();
  int left = diffX/2;
  int top = diffY/2;
  ret iiPad(inner, left, top, diffX-left, diffY-top);
}

Author comment

Began life as a copy of #1032171

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032176
Snippet name: iiPadCenter - place integral image in the center, black border around
Eternal ID of this version: #1032176/2
Text MD5: 76f4e9bd9a287c99680630e55db92002
Transpilation MD5: 63f962de0d787b176c62ecb23483064d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-17 14:57:38
Source code size: 249 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 231
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)