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

8
LINES

< > BotCompany Repo | #1032253 // assertSameSize

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

Libraryless. Click here for Pure Java version (9176L/51K).

1  
meta-for BufferedImage also as WidthAndHeight {
2  
  svoid assertSameSize(BufferedImage a, BufferedImage b) {
3  
    int w1 = a.getWidth(), w2 = b.getWidth();
4  
    int h1 = a.getHeight(), h2 = b.getHeight();
5  
    if (w1 != w2 || h1 != h2)
6  
      fail("Different sizes: " + w1 + "*" + h1 + " vs " + w2 + "*" + h2);
7  
  }
8  
}

Author comment

Began life as a copy of #1019582

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032253
Snippet name: assertSameSize
Eternal ID of this version: #1032253/5
Text MD5: a76d1e2cb7f884d5064f8705eb9063dc
Transpilation MD5: 28554dc1c207fe0b7a30f31334849887
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-03 01:35:16
Source code size: 317 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 306
Version history: 4 change(s)
Referenced in: [show references]