ladybird/Libraries/LibWeb/HTML/Canvas/SerializeBitmap.h
Aliaksandr Kalenik 9140348cbd LibWeb: Remove unused Document.h includes from SerializeBitmap.h
...and XMLFragmentParser.h

Neither header uses anything from Document.h directly.
2026-02-08 18:51:13 +01:00

22 lines
490 B
C++

/*
* Copyright (c) 2025, Ladybird contributors
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteBuffer.h>
#include <LibGfx/Forward.h>
namespace Web::HTML {
struct SerializeBitmapResult {
ByteBuffer buffer;
StringView mime_type;
};
// https://html.spec.whatwg.org/multipage/canvas.html#a-serialisation-of-the-bitmap-as-a-file
ErrorOr<SerializeBitmapResult> serialize_bitmap(Gfx::Bitmap const& bitmap, StringView type, Optional<double> quality);
}