-
- /// 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:
- /** Uses the params to ascertain the dimensions of the scaled image.
- * Returned as make_pair(width, height).
- * If something goes wrong, returns make_pair(getWidth(), getHeight())
- */
- std::pair<unsigned int, unsigned int>
- getScaledDimensions(Params const & params) const;