1// Aseprite Document Library
2// Copyright (c) 2001-2015 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef DOC_ALGORITHM_ROTATE_H_INCLUDED
8#define DOC_ALGORITHM_ROTATE_H_INCLUDED
9#pragma once
10
11namespace doc {
12 class Image;
13
14 namespace algorithm {
15
16 void scale_image(Image* dst, const Image* src,
17 int dst_x, int dst_y, int dst_w, int dst_h,
18 int src_x, int src_y, int src_w, int src_h);
19
20 void rotate_image(Image* dst, const Image* src,
21 int x, int y, int w, int h,
22 int cx, int cy, double angle);
23
24 void parallelogram(Image* dst, const Image* src, const Image* mask,
25 int x1, int y1, int x2, int y2,
26 int x3, int y3, int x4, int y4);
27
28 } // namespace algorithm
29} // namespace doc
30
31#endif
32