mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 22:26:20 +01:00
Move background extraction into separate method (#1383)
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user