#include "lyxrc.h"
#include "encoding.h"
+#include "frontends/support/LyXImage.h"
+
using std::endl;
using std::max;
return *this;
}
-
PainterBase & Painter::pixmap(int x, int y, int w, int h, Pixmap bitmap)
{
if (lyxerr.debugging(Debug::GUI)) {
"workarea::workhandler\n";
lyxerr << "Painter drawable: " << owner.getPixmap() << endl;
}
-
+
XGCValues val;
val.function = GXcopy;
GC gc = XCreateGC(display, owner.getPixmap(),
return *this;
}
+PainterBase & Painter::image(int x, int y, int w, int h, LyXImage const * image)
+{
+ Pixmap bitmap = image->getPixmap();
+
+ return pixmap(x, y, w, h, bitmap);
+}
+
PainterBase & Painter::text(int x, int y, string const & s, LyXFont const & f)
{