Mercurial > mercurial > hgweb_searcher03.cgi
comparison src/cache.cpp @ 12:52958cd4a073
Implement Force Mask button in Batch Print Mode.
| author | pyon@macmini |
|---|---|
| date | Sun, 18 May 2014 19:49:15 +0900 |
| parents | dfcf8c973219 |
| children | a8e6e5769e3b |
comparison
equal
deleted
inserted
replaced
| 11:dfcf8c973219 | 12:52958cd4a073 |
|---|---|
| 1 // Filename : cache.cpp | 1 // Filename : cache.cpp |
| 2 // Last Change: 07-May-2014. | 2 // Last Change: 08-May-2014. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #include "cache.h" | 5 #include "cache.h" |
| 6 #include "db.h" | 6 #include "db.h" |
| 7 | 7 |
| 64 wxString cachedir = wxGetCwd() + wxFILE_SEP_PATH + wxT("cache"); | 64 wxString cachedir = wxGetCwd() + wxFILE_SEP_PATH + wxT("cache"); |
| 65 | 65 |
| 66 for ( int i = 0; i < path.GetCount(); i++ ) { | 66 for ( int i = 0; i < path.GetCount(); i++ ) { |
| 67 | 67 |
| 68 wxArrayString files; | 68 wxArrayString files; |
| 69 wxDir::GetAllFiles( path[i], &files, wxT("*.*"), wxDIR_DEFAULT ); | 69 wxDir::GetAllFiles( path[i], &files, wxT("*.jpg"), wxDIR_DEFAULT ); |
| 70 | 70 |
| 71 for ( int j = 0; j < files.GetCount(); j++ ) { | 71 for ( int j = 0; j < files.GetCount(); j++ ) { |
| 72 wxImage image( files[j], wxBITMAP_TYPE_JPEG ); | 72 wxImage image( files[j], wxBITMAP_TYPE_JPEG ); |
| 73 wxImage output = image.Scale( m_width, m_height, wxIMAGE_QUALITY_HIGH ); | 73 wxImage output = image.Scale( m_width, m_height, wxIMAGE_QUALITY_HIGH ); |
| 74 | 74 |
