-
- /// Clip the image using params.
- virtual void clip(Params const & params) = 0;
-
- /// Rotate the image using params.
- virtual void rotate(Params const & params) = 0;
-
- /// Scale the image using params.
- virtual void scale(Params const & params) = 0;
-
-protected:
- /// Must define default c-tor explicitly as we define a copy c-tor.
- Image() {}
- /// Don't copy the signal finishedLoading
- Image(Image const &) {}
-
- /** Uses the params to ascertain the dimensions of the scaled image.
- * Returned as Dimension(width, height, 0 descend).
- * If something goes wrong, returns make_pair(getWidth(), getHeight(), 0)
- */
- Dimension scaledDimension(Params const & params) const;