Commit 9854f317 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

annots: Add AnnotColor::adjustColor() to be able to adjust an existing AnnotColor

parent 2bf82f27
......@@ -629,6 +629,13 @@ AnnotColor::AnnotColor(Array *array, int adjust) {
obj1.free();
}
if (adjust != 0)
adjustColor(adjust);
}
void AnnotColor::adjustColor(int adjust) {
int i;
if (length == 4) {
adjust = -adjust;
}
......
......@@ -295,6 +295,8 @@ public:
AnnotColor(double c, double m, double y, double k);
AnnotColor(Array *array, int adjust = 0);
void adjustColor(int adjust);
AnnotColorSpace getSpace() const { return (AnnotColorSpace) length; }
const double *getValues() const { return values; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment