- virtual bool setPixmap(GParams const & params) = 0;
-
- /// Clip the image using params.
- virtual void clip(GParams const & params) = 0;
-
- /// Rotate the image using params.
- virtual void rotate(GParams const & params) = 0;
-
- /// Scale the image using params.
- virtual void scale(GParams const & params) = 0;
-
-protected:
- /** Uses the params to ascertain the dimensions of the scaled image.
- * Returned as make_pair(width, height).
- * If something geso wrong, returns make_pair(getWidth(), getHeight())
- */
- std::pair<unsigned int, unsigned int>
- getScaledDimensions(GParams const & params) const;