tahoma2d/toonz/sources/include/tcolorutils.h

42 lines
1.3 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef COLORCLUSTERIZE_INCLUDED
#define COLORCLUSTERIZE_INCLUDED
//------------------------------------------------------------------------------
#include <set>
//#include "tpixel.h"
#include "traster.h"
2018-05-21 18:11:35 +12:00
#include <QList>
2016-03-19 06:57:51 +13:00
#undef DVAPI
#undef DVVAR
#ifdef TAPPTOOLS_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
2016-06-15 18:43:10 +12:00
namespace TColorUtils {
2016-03-19 06:57:51 +13:00
/*-- 似ている色をまとめて1つのStyleにする --*/
2016-06-15 18:43:10 +12:00
DVAPI void buildPalette(std::set<TPixel32> &palette, const TRaster32P &raster,
int maxColorCount);
2016-03-19 06:57:51 +13:00
/*-- 全ての異なるピクセルの色を別のStyleにする --*/
2016-06-15 18:43:10 +12:00
DVAPI void buildPrecisePalette(std::set<TPixel32> &palette,
const TRaster32P &raster, int maxColorCount);
2018-05-21 18:11:35 +12:00
// pick up color chip sorrounded by frames with specified color
DVAPI void buildColorChipPalette(QList<QPair<TPixel32, TPoint>> &palette,
const TRaster32P &raster, int maxColorCount,
const TPixel32 &gridColor,
const int gridLineWidth,
const int colorChipOrder);
2016-03-19 06:57:51 +13:00
}
//------------------------------------------------------------------------------
#endif