1// Aseprite Document Library
2// Copyright (c) 2001-2017 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_FLOODFILL_H_INCLUDED
8#define DOC_ALGORITHM_FLOODFILL_H_INCLUDED
9#pragma once
10
11#include "doc/algorithm/hline.h"
12#include "doc/color.h"
13#include "gfx/fwd.h"
14
15namespace doc {
16
17 class Image;
18 class Mask;
19
20 namespace algorithm {
21
22 void floodfill(const Image* image,
23 const Mask* mask,
24 const int x, const int y,
25 const gfx::Rect& bounds,
26 const doc::color_t srcColor,
27 const int tolerance,
28 const bool contiguous,
29 const bool isEightConnected,
30 void* data,
31 AlgoHLine proc);
32
33 }
34}
35
36#endif
37