1// Aseprite Document Library
2// Copyright (c) 2001-2014 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_FLIP_IMAGE_H_INCLUDED
8#define DOC_ALGORITHM_FLIP_IMAGE_H_INCLUDED
9#pragma once
10
11#include "gfx/fwd.h"
12#include "doc/algorithm/flip_type.h"
13
14namespace doc {
15 class Image;
16 class Mask;
17
18 namespace algorithm {
19
20 // Flips the rectangular region specified in the "bounds" parameter.
21 void flip_image(Image* image, const gfx::Rect& bounds, FlipType flipType);
22
23 // Flips an irregular region specified by the "mask". The
24 // "bgcolor" is used to clear areas that aren't covered by a
25 // mirrored pixel.
26 void flip_image_with_mask(Image* image, const Mask* mask, FlipType flipType, int bgcolor);
27
28 }
29}
30
31#endif
32