summaryrefslogtreecommitdiff
path: root/Userland/avol.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-15 21:48:08 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-15 21:48:08 +0200
commit1bd29414672caca335c47e9c46ac6c194d918700 (patch)
treee5eba63d0b33eeb4e5f747f95a02de6f14872d79 /Userland/avol.cpp
parent5c2b21705aed50d551012facb4132e7a99bcd0b2 (diff)
downloadserenity-1bd29414672caca335c47e9c46ac6c194d918700.zip
LibDraw: Add ImageLoader, a simple abstraction for image loading
An ImageLoader is a generic interface for loading encoded image data of any supported format. It has an ImageLoaderPlugin internally that does all the work. This patch adds an initial PNGImageLoaderPlugin that knows how to retrieve the size of a PNG, and the bitmap. The API is divided into size() and bitmap() to facilitate geometry-only decoding. This will be useful in places like LibHTML where we need dimensions for layout purposes but can wait with the bitmap until later.
Diffstat (limited to 'Userland/avol.cpp')
0 files changed, 0 insertions, 0 deletions