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

4
LINES

< > BotCompany Repo | #1034777 // test_PadImageToAspectRatio

JavaX fragment (include)

1  
svoid test_PadImageToAspectRatio() {
2  
  var img = enableScaffolding(PadImageToAspectRatio(blackImage(100), Ratio(9, 16), Color.white))!;
3  
  assertSame(img, enableScaffolding(PadImageToAspectRatio(img, Ratio(9, 16), Color.white))!;
4  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034777
Snippet name: test_PadImageToAspectRatio
Eternal ID of this version: #1034777/1
Text MD5: 4b7089fc25c9f11e8c03c8eab4513b39
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-08 09:07:06
Source code size: 233 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 154
Referenced in: [show references]