Mercurial > mercurial > hgweb_mover2.cgi
comparison include/marksheet.h @ 1:b47bd4618c16
design done.
author | pyon@macmini |
---|---|
date | Sat, 15 Oct 2011 20:07:12 +0900 |
parents | 7bf900d47e9e |
children | a43adb9537b2 |
comparison
equal
deleted
inserted
replaced
0:7bf900d47e9e | 1:b47bd4618c16 |
---|---|
1 // Filename : marksheet.h | 1 // Filename : marksheet.h |
2 // Last Change: 06-Oct-2011. | 2 // Last Change: 15-Oct-2011. |
3 // | 3 // |
4 #ifndef __MARKSHEET__ | 4 #ifndef __MARKSHEET__ |
5 #define __MARKSHEET__ | 5 #define __MARKSHEET__ |
6 | 6 |
7 | 7 |
60 } | 60 } |
61 | 61 |
62 return hhs; | 62 return hhs; |
63 }; | 63 }; |
64 | 64 |
65 bool IsMarksheet( wxString& file ) | 65 bool IsMarksheet( wxString& file, float* brate, long* len ) |
66 { | 66 { |
67 wxImage img( file, wxBITMAP_TYPE_JPEG ); | 67 wxImage img( file, wxBITMAP_TYPE_JPEG ); |
68 int black = 0; | 68 int black = 0; |
69 int x = 2465; | 69 int x = 2465; |
70 int h = 3500; | 70 int h = 3500; |
83 wxFile f( file ); | 83 wxFile f( file ); |
84 long l = f.Length(); | 84 long l = f.Length(); |
85 float lmin = 2072393; | 85 float lmin = 2072393; |
86 float lmax = 2346082; | 86 float lmax = 2346082; |
87 | 87 |
88 *brate = z; | |
89 *len = l; | |
88 //wxPuts(wxString::Format(wxT("z = %f, len = %d"),z,len)); | 90 //wxPuts(wxString::Format(wxT("z = %f, len = %d"),z,len)); |
89 if ( zmin < z && z < zmax | 91 if ( zmin < z && z < zmax |
90 && lmin < l && l < lmax ) { | 92 && lmin < l && l < lmax ) { |
91 return true; | 93 return true; |
92 } | 94 } |