Added printing images.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -461,15 +461,21 @@ void wxGnomePrintDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y,
|
|||||||
|
|
||||||
if (!image.Ok()) return;
|
if (!image.Ok()) return;
|
||||||
|
|
||||||
gnome_print_moveto (m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
|
double matrix[6];
|
||||||
|
matrix[0] = XLOG2DEVREL(image.GetWidth());
|
||||||
|
matrix[1] = 0;
|
||||||
|
matrix[2] = 0;
|
||||||
|
matrix[3] = YLOG2DEVREL(image.GetHeight());
|
||||||
|
matrix[4] = XLOG2DEV(x);
|
||||||
|
matrix[5] = YLOG2DEV(y+image.GetHeight());
|
||||||
|
gnome_print_concat( m_gpc, matrix );
|
||||||
|
gnome_print_moveto( m_gpc, 0, 0 );
|
||||||
gnome_print_rgbimage( m_gpc, (guchar*) image.GetData(), image.GetWidth(), image.GetHeight(), image.GetWidth()*3 );
|
gnome_print_rgbimage( m_gpc, (guchar*) image.GetData(), image.GetWidth(), image.GetHeight(), image.GetWidth()*3 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGnomePrintDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y )
|
void wxGnomePrintDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y )
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
|
|
||||||
if (m_textForegroundColour.Ok())
|
if (m_textForegroundColour.Ok())
|
||||||
{
|
{
|
||||||
unsigned char red = m_textForegroundColour.Red();
|
unsigned char red = m_textForegroundColour.Red();
|
||||||
|
@@ -461,15 +461,21 @@ void wxGnomePrintDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y,
|
|||||||
|
|
||||||
if (!image.Ok()) return;
|
if (!image.Ok()) return;
|
||||||
|
|
||||||
gnome_print_moveto (m_gpc, XLOG2DEV(x), YLOG2DEV(y) );
|
double matrix[6];
|
||||||
|
matrix[0] = XLOG2DEVREL(image.GetWidth());
|
||||||
|
matrix[1] = 0;
|
||||||
|
matrix[2] = 0;
|
||||||
|
matrix[3] = YLOG2DEVREL(image.GetHeight());
|
||||||
|
matrix[4] = XLOG2DEV(x);
|
||||||
|
matrix[5] = YLOG2DEV(y+image.GetHeight());
|
||||||
|
gnome_print_concat( m_gpc, matrix );
|
||||||
|
gnome_print_moveto( m_gpc, 0, 0 );
|
||||||
gnome_print_rgbimage( m_gpc, (guchar*) image.GetData(), image.GetWidth(), image.GetHeight(), image.GetWidth()*3 );
|
gnome_print_rgbimage( m_gpc, (guchar*) image.GetData(), image.GetWidth(), image.GetHeight(), image.GetWidth()*3 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGnomePrintDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y )
|
void wxGnomePrintDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y )
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
|
|
||||||
if (m_textForegroundColour.Ok())
|
if (m_textForegroundColour.Ok())
|
||||||
{
|
{
|
||||||
unsigned char red = m_textForegroundColour.Red();
|
unsigned char red = m_textForegroundColour.Red();
|
||||||
|
Reference in New Issue
Block a user