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

11
LINES

< > BotCompany Repo | #1032253 // assertSameSize

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

Libraryless. Click here for Pure Java version (5338L/29K).

svoid assertSameSize(BufferedImage a, BufferedImage b) {
  assertEquals(
    pair(a.getWidth(), a.getHeight()),
    pair(b.getWidth(), b.getHeight()));
}

svoid assertSameSize(WidthAndHeight a, WidthAndHeight b) {
  assertEquals(
    pair(a.getWidth(), a.getHeight()),
    pair(b.getWidth(), b.getHeight()));
}

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/4
Text MD5: 0c707f363eecd3b403aca4f11cca2042
Transpilation MD5: 49f1398f628f94a642dfffa655e95842
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-11 07:39:54
Source code size: 320 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 129
Version history: 3 change(s)
Referenced in: [show references]