1// Aseprite
2// Copyright (c) 2019-2021 Igara Studio S.A.
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_UTIL_RESIZE_CEL_IMAGE_H_INCLUDED
8#define APP_UTIL_RESIZE_CEL_IMAGE_H_INCLUDED
9#pragma once
10
11#include "doc/algorithm/resize_image.h"
12#include "doc/color.h"
13#include "gfx/point.h"
14#include "gfx/size.h"
15
16namespace doc {
17 class Cel;
18 class Image;
19 class Palette;
20 class RgbMap;
21}
22
23namespace app {
24 class Tx;
25
26 doc::Image* resize_image(
27 const doc::Image* image,
28 const gfx::SizeF& scale,
29 const doc::algorithm::ResizeMethod method,
30 const doc::Palette* pal,
31 const doc::RgbMap* rgbmap);
32
33 void resize_cel_image(
34 Tx& tx, doc::Cel* cel,
35 const gfx::SizeF& scale,
36 const doc::algorithm::ResizeMethod method,
37 const gfx::PointF& pivot);
38
39} // namespace app
40
41#endif
42