Libraryless. Click here for Pure Java version (9176L/51K).
meta-for BufferedImage also as WidthAndHeight { svoid assertSameSize(BufferedImage a, BufferedImage b) { int w1 = a.getWidth(), w2 = b.getWidth(); int h1 = a.getHeight(), h2 = b.getHeight(); if (w1 != w2 || h1 != h2) fail("Different sizes: " + w1 + "*" + h1 + " vs " + w2 + "*" + h2); } }
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: | 501 / 639 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |