Mercurial > mercurial > hgweb_searcher2.cgi
comparison src/preview.cpp @ 8:db7bd315e52c
editing mark-sheet image.
author | pyon@macmini |
---|---|
date | Tue, 21 Jun 2011 21:16:31 +0900 |
parents | c6099901f666 |
children | 24e0775af32e |
comparison
equal
deleted
inserted
replaced
7:c6099901f666 | 8:db7bd315e52c |
---|---|
1 // Filename : preview.cpp | 1 // Filename : preview.cpp |
2 // Last Change: 16-Apr-2011. | 2 // Last Change: 21-Jun-2011. |
3 // | 3 // |
4 | 4 |
5 #include "preview.h" | 5 #include "preview.h" |
6 | 6 |
7 // for all others, include the necessary headers (this file is usually all you | 7 // for all others, include the necessary headers (this file is usually all you |
115 // preview | 115 // preview |
116 if ( cout ) { | 116 if ( cout ) { |
117 wxString mfile = path + wxFILE_SEP_PATH + file; | 117 wxString mfile = path + wxFILE_SEP_PATH + file; |
118 wxImage img( mfile, wxBITMAP_TYPE_JPEG ); | 118 wxImage img( mfile, wxBITMAP_TYPE_JPEG ); |
119 wxBitmap bmp( img.Scale( 640, 877, wxIMAGE_QUALITY_HIGH ) ); | 119 wxBitmap bmp( img.Scale( 640, 877, wxIMAGE_QUALITY_HIGH ) ); |
120 m_bitmap->SetBitmap( bmp); | 120 |
121 wxImage img2; | |
122 //img2 = img.Size( wxSize(626,288), wxPoint(328,556), -1, -1, -1 ); | |
123 img2 = img.Size( wxSize(954,844), wxPoint(328,556), -1, -1, -1 ); | |
124 | |
125 wxBitmap bmp2( img2.Scale( 626, 288, wxIMAGE_QUALITY_HIGH ) ); | |
126 m_bitmap->SetBitmap( bmp2 ); | |
121 } | 127 } |
122 // thumbnail | 128 // thumbnail |
123 int i=0; | 129 int i=0; |
124 while ( cout ) { | 130 while ( cout ) { |
125 m_listCtrl->InsertItem( i, file, i ); | 131 m_listCtrl->InsertItem( i, file, i ); |