summaryrefslogtreecommitdiff
path: root/Kernel/BootInfo.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2023-05-19 00:26:34 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-19 18:36:36 +0200
commit6242d8e023d1344f15a2e689297d481fb50d565a (patch)
treeb08465a200e41f4a30ad2149d0f0e0c6c42462ac /Kernel/BootInfo.h
parent31fa44953846111ba880db8099594cf283efa3ee (diff)
downloadserenity-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 'Kernel/BootInfo.h')
0 files changed, 0 insertions, 0 deletions