Transpiled version (5323L) is out of date.
static BufferedImage combineBWImagesToColor(BWImage img1, Color color1, BWImage img2, Color color2) { int w = img1.getWidth(), h = img1.getHeight(); int[] pixels = new[w*h]; int i = 0; for y to h: for x to w: { pixels[i++] = colorToIntOpaque(addColors( blendColor(Color.black, color1, img1.getPixel(x, y)), blendColor(Color.black, color2, img2.getPixel(x, y)))); } ret intArrayToBufferedImage(pixels, w, h); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029771 |
| Snippet name: | combineBWImagesToColor |
| Eternal ID of this version: | #1029771/2 |
| Text MD5: | daeb759b0e646dc8b4c4d2ae9797c10e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-09-12 03:08:57 |
| Source code size: | 460 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 423 / 554 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |