tahoma2d/toonz/sources/toonzlib/sandor_fxs/blend.h
Toshihiro Shimizu 890dddabbd first commit
2016-03-19 02:57:51 +09:00

26 lines
754 B
C++

#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