1 // Aseprite Document Library 2 // Copyright (c) 2001-2016 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_SHRINK_BOUNDS_H_INCLUDED 8 #define DOC_ALGORITHM_SHRINK_BOUNDS_H_INCLUDED 9 #pragma once 10 11 #include "gfx/fwd.h" 12 #include "doc/algorithm/flip_type.h" 13 #include "doc/color.h" 14 15 namespace doc { 16 class Image; 17 18 namespace algorithm { 19 20 bool shrink_bounds(const Image* image, 21 const gfx::Rect& start_bounds, 22 gfx::Rect& bounds, 23 color_t refpixel); 24 25 bool shrink_bounds(const Image* image, 26 gfx::Rect& bounds, 27 color_t refpixel); 28 29 bool shrink_bounds2(const Image* a, 30 const Image* b, 31 const gfx::Rect& start_bounds, 32 gfx::Rect& bounds); 33 34 } // algorithm 35 } // doc 36 37 #endif 38