mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
LibGfx: Use enum instead of magic numbers for PNG Color and Filter types
This commit is contained in:
parent
9dbec601b0
commit
ebc20f7ac3
4 changed files with 81 additions and 48 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
#include <LibGfx/PNGShared.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
||||
|
@ -24,7 +25,7 @@ private:
|
|||
Vector<u8> m_data;
|
||||
void add_chunk(PNGChunk&);
|
||||
void add_png_header();
|
||||
void add_IHDR_chunk(u32 width, u32 height, u8 bit_depth, u8 color_type, u8 compression_method, u8 filter_method, u8 interlace_method);
|
||||
void add_IHDR_chunk(u32 width, u32 height, u8 bit_depth, PNG::ColorType color_type, u8 compression_method, u8 filter_method, u8 interlace_method);
|
||||
void add_IDAT_chunk(Gfx::Bitmap const&);
|
||||
void add_IEND_chunk();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue