ladybird/Userland/Libraries/LibGfx/ImageFormats/GIFWriter.h
Lucas CHOLLET 2513a1b83f LibGfx: Add a GIF writer
This version is really barebone as it does not support colors (only
black and white) or animated images.
2024-05-14 12:33:53 -06:00

21 lines
357 B
C++

/*
* Copyright (c) 2024, Lucas Chollet <lucas.chollet@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Error.h>
#include <LibGfx/Forward.h>
namespace Gfx {
// Specified at: https://www.w3.org/Graphics/GIF/spec-gif89a.txt
class GIFWriter {
public:
static ErrorOr<void> encode(Stream&, Bitmap const&);
};
}