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 this class is through this static method.
28 static Image * newImage();
30 /// Retrieve the rendered image.
31 QImage const & image() const;
35 Image * clone() const;
36 /// Get the image width
37 unsigned int width() const;
38 /// Get the image height
39 unsigned int height() const;
40 // FIXME Is the image drawable ?
41 bool isDrawable() const { return true; }
43 * Load the image file into memory.
45 bool load(support::FileName const & filename);
48 * Finishes the process of modifying transformed_, using
49 * \c params to decide on color, grayscale etc.
50 * \returns true if successful.
52 bool setPixmap(Params const & params);
54 /// Clip the image using params.
55 bool clip(Params const & params);
56 /// Rotate the image using params.
57 bool rotate(Params const & params);
58 /// Scale the image using params.
59 bool scale(Params const & params);
61 /// Access to the class is through newImage() and clone.
64 GuiImage(GuiImage const &);
66 /// The original loaded image.
69 /// The transformed image for display.
78 } // namespace graphics