Added wxImage wxImage::GetSubImage(cont wxRect&) const

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Sylvain Bougnoux
1999-08-18 17:01:47 +00:00
parent 895fc9cb8b
commit 7b2471a060
3 changed files with 77 additions and 6 deletions

View File

@@ -170,6 +170,30 @@ public:
#endif
};
//-----------------------------------------------------------------------------
// wxPNMHandler
//-----------------------------------------------------------------------------
class WXDLLEXPORT wxPNMHandler : public wxImageHandler
{
DECLARE_DYNAMIC_CLASS(wxPNMHandler)
public:
inline wxPNMHandler()
{
m_name = "PNM file";
m_extension = "pnm";
m_type = wxBITMAP_TYPE_PNM;
m_mime = "image/pnm";
};
#if wxUSE_STREAMS
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
#endif
};
//-----------------------------------------------------------------------------
// wxImage
//-----------------------------------------------------------------------------
@@ -200,6 +224,9 @@ public:
void Create( int width, int height );
void Destroy();
// return the new image with size width*height
wxImage GetSubImage( const wxRect& ) const;
// return the new image with size width*height
wxImage Scale( int width, int height ) const;