comparison src/preview.cpp @ 10:24e0775af32e

Add Name-View.
author pyon@macmini
date Wed, 22 Jun 2011 20:43:50 +0900
parents db7bd315e52c
children
comparison
equal deleted inserted replaced
9:6f59ca2622af 10:24e0775af32e
1 // Filename : preview.cpp 1 // Filename : preview.cpp
2 // Last Change: 21-Jun-2011. 2 // Last Change: 22-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
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 120
121 wxImage img2; 121 m_bitmap->SetBitmap( bmp );
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 );
127 } 122 }
128 // thumbnail 123 // thumbnail
129 int i=0; 124 int i=0;
130 while ( cout ) { 125 while ( cout ) {
131 m_listCtrl->InsertItem( i, file, i ); 126 m_listCtrl->InsertItem( i, file, i );