forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flatten.h
37 lines (30 loc) · 1.09 KB
/
flatten.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Aseprite
// Copyright (C) 2019 Igara Studio S.A.
// Copyright (C) 2001-2015 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
#ifndef APP_FLATTEN_H_INCLUDED
#define APP_FLATTEN_H_INCLUDED
#pragma once
#include "gfx/rect.h"
#include "doc/frame.h"
namespace doc {
class Sprite;
class Layer;
class LayerImage;
}
namespace app {
// Returns a new layer with the given layer at "srcLayer" rendered
// frame by frame from "frmin" to "frmax" (inclusive). The routine
// flattens all children of "srcLayer" to an unique output layer.
//
// Note: The layer is not added to the given sprite, but is related to
// it, so you'll be able to add the flatten layer only into the given
// sprite.
LayerImage* create_flatten_layer_copy(Sprite* dstSprite, const Layer* srcLayer,
const gfx::Rect& bounds,
frame_t frmin, frame_t frmax,
const bool newBlend);
} // namespace app
#endif