diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2023-05-19 00:26:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-19 18:36:36 +0200 |
commit | 6242d8e023d1344f15a2e689297d481fb50d565a (patch) | |
tree | b08465a200e41f4a30ad2149d0f0e0c6c42462ac /Ladybird/Icons | |
parent | 31fa44953846111ba880db8099594cf283efa3ee (diff) | |
download | serenity-6242d8e023d1344f15a2e689297d481fb50d565a.zip |
LibGfx: Implement box sampling image scaling
Box sampling is a scaling algorithm that averages all the pixels that
form the source for the target pixel. For example, if you would resize a
9x9 image to 3x3, each target pixel would encompass a 3x3 pixel area in
the source image.
Box sampling is a near perfect scaling algorithm for downscaling. When
upscaling with this algorithm, the result is similar to nearest neighbor
or smooth pixels.
Diffstat (limited to 'Ladybird/Icons')
0 files changed, 0 insertions, 0 deletions