4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS.
16 #include "graphics/GraphicsImage.h"
24 class GuiImage : public Image
27 /// Access to the class is through newImage() and clone.
30 GuiImage(GuiImage const &);
32 /// Retrieve the rendered image.
33 QImage const & image() const;
37 Image * clone() const;
38 /// Get the image width
39 unsigned int width() const;
40 /// Get the image height
41 unsigned int height() const;
42 // FIXME Is the image drawable ?
43 bool isDrawable() const { return true; }
45 * Load the image file into memory.
47 bool load(support::FileName const & filename);
50 * Finishes the process of modifying transformed_, using
51 * \c params to decide on color, grayscale etc.
52 * \returns true if successful.
54 bool setPixmap(Params const & params);
56 /// Clip the image using params.
57 bool clip(Params const & params);
58 /// Rotate the image using params.
59 bool rotate(Params const & params);
60 /// Scale the image using params.
61 bool scale(Params const & params);
63 /// The original loaded image.
66 /// The transformed image for display.
75 } // namespace graphics