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

5
LINES

< > BotCompany Repo | #1035216 // FastDownscale8x8 - downscales each 8x8 block of a color BufferedImage to one pixel

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

Libraryless. Click here for Pure Java version (9595L/55K).

sclass FastDownscale8x8 {
  static final int scaleX = 8, scaleY = scaleX;
  
  !include #1035221 // FastDownscale Include v2
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035216
Snippet name: FastDownscale8x8 - downscales each 8x8 block of a color BufferedImage to one pixel
Eternal ID of this version: #1035216/10
Text MD5: b9651eac2dfcde539c13e0af55e126e0
Transpilation MD5: 03095d70145e78c80d43e56e735b6cfe
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-15 18:29:25
Source code size: 130 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 285
Version history: 9 change(s)
Referenced in: #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167)
#1035218 - FastDownscale8x8 (working backup) - downscales each 8x8 block of a color BufferedImage to one pixel
#1035219 - FastDownscale Include (old/slower, use v2) - downscales each scaleX*scaleY block of a color BufferedImage to one pixel (with scaleX and scaleY being powers of two)
#1035220 - FastDownscale4x4 - downscales each 4x4 block of a color BufferedImage to one pixel
#1035222 - FastDownscale2x2 - downscales each 2x2 block of a color BufferedImage to one pixel