Move background extraction into separate method (#1383)

This commit is contained in:
freezy
2018-09-24 11:00:00 +02:00
committed by Lovell Fuller
parent db2af42ee7
commit 37d385fafa
3 changed files with 44 additions and 56 deletions

View File

@@ -255,6 +255,11 @@ namespace sharp {
*/
std::vector<double> GetRgbaAsColourspace(std::vector<double> const rgba, VipsInterpretation const interpretation);
/*
Apply the alpha channel to a given colour
*/
std::tuple<VImage, std::vector<double>> ApplyAlpha(VImage image, double colour[4]);
} // namespace sharp
#endif // SRC_COMMON_H_