diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-15 21:48:08 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-15 21:48:08 +0200 |
commit | 1bd29414672caca335c47e9c46ac6c194d918700 (patch) | |
tree | e5eba63d0b33eeb4e5f747f95a02de6f14872d79 /Userland/avol.cpp | |
parent | 5c2b21705aed50d551012facb4132e7a99bcd0b2 (diff) | |
download | serenity-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