X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02255e07d75191d1146e21d4218835a79214a970..8e4b5265cdd7aeea67c85eb0f50186641f09f7d8:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index a77cfee664..3acc88d47b 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -874,49 +874,6 @@ public: bool useMask = false) { m_pimpl->DoDrawBitmap(bmp, pt.x, pt.y, useMask); } - virtual void DrawScaledBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, wxCoord w, wxCoord h, bool useMask = false, int quality = wxIMAGE_QUALITY_NORMAL) - { - if (bmp.GetWidth() != w || bmp.GetHeight() != h) - { - if (quality != wxIMAGE_QUALITY_HIGH) - quality = wxIMAGE_QUALITY_NORMAL; - wxImage tmpImg = bmp.ConvertToImage(); - tmpImg.Rescale( w, h, quality ); - wxBitmap scaledBmp(tmpImg); - m_pimpl->DoDrawBitmap(scaledBmp, x, y, useMask); - } - else - m_pimpl->DoDrawBitmap(bmp, x, y, useMask); - } - virtual void DrawScaledBitmap(const wxBitmap &bmp, const wxPoint& pt, const wxSize& sz, bool useMask = false, int quality = wxIMAGE_QUALITY_NORMAL) - { - if (bmp.GetWidth() != sz.x || bmp.GetHeight() != sz.y) - { - if (quality != wxIMAGE_QUALITY_HIGH) - quality = wxIMAGE_QUALITY_NORMAL; - wxImage tmpImg = bmp.ConvertToImage(); - tmpImg.Rescale( sz.x, sz.y, quality ); - wxBitmap scaledBmp(tmpImg); - m_pimpl->DoDrawBitmap(scaledBmp, pt.x, pt.y, useMask); - } - else - m_pimpl->DoDrawBitmap(bmp, pt.x, pt.y, useMask); - } - virtual void DrawScaledBitmap(const wxBitmap &bmp, const wxRect& rect, bool useMask = false, int quality = wxIMAGE_QUALITY_NORMAL) - { - if (bmp.GetWidth() != rect.width || bmp.GetHeight() != rect.height) - { - if (quality != wxIMAGE_QUALITY_HIGH) - quality = wxIMAGE_QUALITY_NORMAL; - wxImage tmpImg = bmp.ConvertToImage(); - tmpImg.Rescale( rect.width, rect.height, quality ); - wxBitmap scaledBmp(tmpImg); - m_pimpl->DoDrawBitmap(scaledBmp, rect.x, rect.y, useMask); - } - else - m_pimpl->DoDrawBitmap(bmp, rect.x, rect.y, useMask); - } - void DrawText(const wxString& text, wxCoord x, wxCoord y) { m_pimpl->DoDrawText(text, x, y); } void DrawText(const wxString& text, const wxPoint& pt) @@ -1233,49 +1190,6 @@ public: bool useMask = false) { DoDrawBitmap(bmp, pt.x, pt.y, useMask); } - virtual void DrawScaledBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, wxCoord w, wxCoord h, bool useMask = false, int quality = wxIMAGE_QUALITY_NORMAL) - { - if (bmp.GetWidth() != w || bmp.GetHeight() != h) - { - if (quality != wxIMAGE_QUALITY_HIGH) - quality = wxIMAGE_QUALITY_NORMAL; - wxImage tmpImg = bmp.ConvertToImage(); - tmpImg.Rescale( w, h, quality ); - wxBitmap scaledBmp(tmpImg); - DoDrawBitmap(scaledBmp, x, y, useMask); - } - else - DoDrawBitmap(bmp, x, y, useMask); - } - virtual void DrawScaledBitmap(const wxBitmap &bmp, const wxPoint& pt, const wxSize& sz, bool useMask = false, int quality = wxIMAGE_QUALITY_NORMAL) - { - if (bmp.GetWidth() != sz.x || bmp.GetHeight() != sz.y) - { - if (quality != wxIMAGE_QUALITY_HIGH) - quality = wxIMAGE_QUALITY_NORMAL; - wxImage tmpImg = bmp.ConvertToImage(); - tmpImg.Rescale( sz.x, sz.y, quality ); - wxBitmap scaledBmp(tmpImg); - DoDrawBitmap(scaledBmp, pt.x, pt.y, useMask); - } - else - DoDrawBitmap(bmp, pt.x, pt.y, useMask); - } - virtual void DrawScaledBitmap(const wxBitmap &bmp, const wxRect& rect, bool useMask = false, int quality = wxIMAGE_QUALITY_NORMAL) - { - if (bmp.GetWidth() != rect.width || bmp.GetHeight() != rect.height) - { - if (quality != wxIMAGE_QUALITY_HIGH) - quality = wxIMAGE_QUALITY_NORMAL; - wxImage tmpImg = bmp.ConvertToImage(); - tmpImg.Rescale( rect.width, rect.height, quality ); - wxBitmap scaledBmp(tmpImg); - DoDrawBitmap(scaledBmp, rect.x, rect.y, useMask); - } - else - DoDrawBitmap(bmp, rect.x, rect.y, useMask); - } - void DrawText(const wxString& text, wxCoord x, wxCoord y) { DoDrawText(text, x, y); } void DrawText(const wxString& text, const wxPoint& pt)