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

4
LINES

< > BotCompany Repo | #1035493 // image2B_growBlack

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

Libraryless. Click here for Pure Java version (10797L/62K).

static Image2B image2B_growBlack(Image2B img, int dx, int dy) {
  ret image2BFromFunction(img.getWidth(), img.getHeight(), (x, y) -> 
    img.getPixel(x+dx, y+dy, true) && img.getPixel(x, y));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035493
Snippet name: image2B_growBlack
Eternal ID of this version: #1035493/2
Text MD5: d8065f9ee6230ff3025b008ecc3ecef0
Transpilation MD5: 0e159940863eeae4039a76baaa7b23b9
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-28 22:04:29
Source code size: 197 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 195
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)