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

10
LINES

< > BotCompany Repo | #1034395 // test_imageDifferenceAsTransparentOverlay

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

Transpiled version (5902L) is out of date.

svoid test_imageDifferenceAsTransparentOverlay() {
  var img1 = newImage(1, 1, Color.green);
  var img2 = newImage(1, 1, Color.blue);
  var diff = imageDifferenceAsTransparentOverlay(img1, img2);
  checkPixelArray(diff, 0xFF0000FF);
  
  img2 = newImage(1, 1, Color.green);
  diff = imageDifferenceAsTransparentOverlay(img1, img2);
  checkPixelArray(diff, 0);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034395
Snippet name: test_imageDifferenceAsTransparentOverlay
Eternal ID of this version: #1034395/3
Text MD5: abcfd9c7ed99430b02f64c1ca3c61610
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-05 03:09:40
Source code size: 370 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 140 / 207
Version history: 2 change(s)
Referenced in: [show references]