Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@14464 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e0b2e3b847
commit
c5f7a08f0c
@ -632,14 +632,15 @@ void TwxPDFDC::DoDrawImage( const wxString& name, const wxRect& dst )
|
||||
{
|
||||
wxCHECK_RET( m_ok, wxT("invalid PDF dc") );
|
||||
|
||||
int intImgHandle = GetImageHandle(name);
|
||||
|
||||
const int intImgHandle = GetImageHandle(name);
|
||||
if (intImgHandle<0)
|
||||
return;
|
||||
|
||||
PDF_TRY_DL(m_PDFlib, m_p)
|
||||
{
|
||||
m_PDFlib->PDF_fit_image(m_p, intImgHandle, dst.GetX(), dst.GetY() + dst.GetHeight(), "");
|
||||
wxString strOptions;
|
||||
strOptions.Printf("boxsize={%d %d} fitmethod=entire", dst.GetWidth(), dst.GetHeight());
|
||||
m_PDFlib->PDF_fit_image(m_p, intImgHandle, dst.GetX(), dst.GetY()+dst.GetHeight(), strOptions);
|
||||
}
|
||||
PDF_CATCH_DL(m_PDFlib, m_p)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user