| 1 | // Aseprite |
| 2 | // Copyright (C) 2019-2020 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_UTIL_NEW_IMAGE_FROM_MASK_H_INCLUDED |
| 9 | #define APP_UTIL_NEW_IMAGE_FROM_MASK_H_INCLUDED |
| 10 | #pragma once |
| 11 | |
| 12 | namespace doc { |
| 13 | class Image; |
| 14 | class Mask; |
| 15 | } |
| 16 | |
| 17 | namespace app { |
| 18 | class Site; |
| 19 | |
| 20 | doc::Image* new_image_from_mask(const Site& site, |
| 21 | const bool newBlend); |
| 22 | doc::Image* new_image_from_mask(const Site& site, |
| 23 | const doc::Mask* mask, |
| 24 | const bool newBlend, |
| 25 | bool merged = false); |
| 26 | doc::Image* new_tilemap_from_mask(const Site& site, |
| 27 | const doc::Mask* mask); |
| 28 | |
| 29 | } // namespace app |
| 30 | |
| 31 | #endif |
| 32 | |