1 | // Aseprite |
2 | // Copyright (C) 2019 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_BUFFER_REGION_H_INCLUDED |
8 | #define APP_UTIL_BUFFER_REGION_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include "base/buffer.h" |
12 | #include "gfx/fwd.h" |
13 | |
14 | namespace doc { |
15 | class Image; |
16 | } |
17 | |
18 | namespace app { |
19 | |
20 | void save_image_region_in_buffer( |
21 | const gfx::Region& region, |
22 | const doc::Image* image, |
23 | const gfx::Point& imagePos, |
24 | base::buffer& buffer); |
25 | |
26 | void swap_image_region_with_buffer( |
27 | const gfx::Region& region, |
28 | doc::Image* image, |
29 | base::buffer& buffer); |
30 | |
31 | } // namespace app |
32 | |
33 | #endif |
34 | |