| 1 | // Aseprite Document Library |
| 2 | // Copyright (c) 2019 Igara Studio S.A. |
| 3 | // Copyright (c) 2001-2015 David Capello |
| 4 | // |
| 5 | // This file is released under the terms of the MIT license. |
| 6 | // Read LICENSE.txt for more information. |
| 7 | |
| 8 | #ifndef DOC_ALGORITHM_SHIFT_IMAGE_H_INCLUDED |
| 9 | #define DOC_ALGORITHM_SHIFT_IMAGE_H_INCLUDED |
| 10 | #pragma once |
| 11 | |
| 12 | #include "doc/image_ref.h" |
| 13 | |
| 14 | namespace doc { |
| 15 | class Cel; |
| 16 | class Mask; |
| 17 | |
| 18 | namespace algorithm { |
| 19 | |
| 20 | void shift_image(Image* image, int dx, int dy, double angle); |
| 21 | ImageRef shift_image_with_mask(const Cel* cel, |
| 22 | const Mask* mask, |
| 23 | const int dx, |
| 24 | const int dy, |
| 25 | gfx::Rect& newCelBounds); |
| 26 | |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | #endif |
| 31 | |