tahoma2d/toonz/sources/toonzlib/sandor_fxs/blend.h

27 lines
754 B
C
Raw Normal View History

2016-03-19 06:57:51 +13:00
#ifndef BLEND_INCLUDE
#define BLEND_INCLUDE
#include "traster.h"
#include "trastercm.h"
#include "ttoonzimage.h"
//------------------------------------------------------------------------------------------
struct BlendParam {
std::vector<int> colorsIndexes; // List of color indexes to be blended together
double intensity; // Blur radius
int smoothness; // Number of neighbouring Blur Samples per pixel
bool stopAtCountour; // Blur is obstacled by not chosen color indexes
int superSampling;
};
//------------------------------------------------------------------------------------------
template <typename PIXEL>
void blend(TToonzImageP ti, TRasterPT<PIXEL> rasOut, const std::vector<BlendParam> &params);
#endif //BLEND_INCLUDE