1// Aseprite
2// Copyright (C) 2019-2022 Igara Studio S.A.
3// Copyright (C) 2001-2018 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifndef APP_FILE_PALETTE_FILE_H_INCLUDED
9#define APP_FILE_PALETTE_FILE_H_INCLUDED
10#pragma once
11
12#include "base/paths.h"
13#include "gfx/color_space.h"
14
15#include <memory>
16
17namespace doc {
18 class Palette;
19}
20
21namespace app {
22 struct FileOpConfig;
23
24 base::paths get_readable_palette_extensions();
25 base::paths get_writable_palette_extensions();
26
27 std::unique_ptr<doc::Palette> load_palette(
28 const char *filename,
29 const FileOpConfig* config = nullptr);
30 bool save_palette(const char *filename,
31 const doc::Palette* pal,
32 int columns,
33 const gfx::ColorSpaceRef& colorSpace);
34
35} // namespace app
36
37#endif
38