📄 class_c_ocr_example_image_view.html
字号:
<table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">COcrExampleImageView::~COcrExampleImageView </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Destructor. <p>Definition at line <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00100">100</a> of file <a class="el" href="_ocr_example_image_view_8cpp-source.html">OcrExampleImageView.cpp</a>.<p>References <a class="el" href="_ocr_example_image_view_8h-source.html#l00274">iBitMap</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00262">iContainer</a>, <a class="el" href="_ocr_example_image_container_8h-source.html#l00048">TScreenUpdateData::iCrosshair</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00268">iData</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00280">iEngine</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00271">iFs</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00277">iHandler</a>, and <a class="el" href="_ocr_example_image_container_8h-source.html#l00036">TScreenUpdateData::iScaledBitMap</a>.<div class="fragment"><pre class="fragment"><a name="l00101"></a>00101 {<a name="l00102"></a>00102 <span class="keywordflow">if</span> (<a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>)<a name="l00103"></a>00103 {<a name="l00104"></a>00104 AppUi()->RemoveFromStack(<a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>);<a name="l00105"></a>00105 <span class="keyword">delete</span> <a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>;<a name="l00106"></a>00106 <a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a> = NULL;<a name="l00107"></a>00107 }<a name="l00108"></a>00108 <span class="keywordflow">if</span> (<a class="code" href="class_c_ocr_example_image_view.html#c22846eecaea51cfb97699603e4227b3">iEngine</a>)<a name="l00109"></a>00109 {<a name="l00110"></a>00110 OCREngineFactory::ReleaseOCREngine(<a class="code" href="class_c_ocr_example_image_view.html#c22846eecaea51cfb97699603e4227b3">iEngine</a>);<a name="l00111"></a>00111 }<a name="l00112"></a>00112 <span class="keyword">delete</span> <a class="code" href="class_c_ocr_example_image_view.html#56132cb68e64726ad0658571e44e9644">iHandler</a>;<a name="l00113"></a>00113 <span class="keyword">delete</span> <a class="code" href="class_c_ocr_example_image_view.html#9eb6fa3188758350a81b83400892e787">iBitMap</a>;<a name="l00114"></a>00114 <span class="keyword">delete</span> <a class="code" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a>.<a class="code" href="class_t_screen_update_data.html#ea6eefa2a3b0315b12fbb5ab0532a849">iScaledBitMap</a>;<a name="l00115"></a>00115 <span class="keyword">delete</span> <a class="code" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a>.<a class="code" href="class_t_screen_update_data.html#3beeffcd97169ea8291ae2fffec377e8">iCrosshair</a>;<a name="l00116"></a>00116 <a class="code" href="class_c_ocr_example_image_view.html#7b548225db36c87401243f1080bbd0e8">iFs</a>.Close();<a name="l00117"></a>00117 }</pre></div><p> </td> </tr></table><a class="anchor" name="7cfaacbb7bdeefcb6bb02114fea43f70"></a><!-- doxytag: member="COcrExampleImageView::COcrExampleImageView" ref="7cfaacbb7bdeefcb6bb02114fea43f70" args="(TOcrExampleSettingsData &aSettings)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">COcrExampleImageView::COcrExampleImageView </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a> & </td> <td class="mdname1" valign="top" nowrap> <em>aSettings</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>C++ constructor. <p>Definition at line <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00039">39</a> of file <a class="el" href="_ocr_example_image_view_8cpp-source.html">OcrExampleImageView.cpp</a>.<p>Referenced by <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00057">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00040"></a>00040 : <a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>(0)<a name="l00041"></a>00041 , <a class="code" href="class_c_ocr_example_image_view.html#9eb6fa3188758350a81b83400892e787">iBitMap</a>(0)<a name="l00042"></a>00042 , <a class="code" href="class_c_ocr_example_image_view.html#56132cb68e64726ad0658571e44e9644">iHandler</a>(0)<a name="l00043"></a>00043 , <a class="code" href="class_c_ocr_example_image_view.html#c22846eecaea51cfb97699603e4227b3">iEngine</a>(0)<a name="l00044"></a>00044 , <a class="code" href="class_c_ocr_example_image_view.html#59c39b7488b211d41b665791026c2f7f">iSettings</a>(aSettings)<a name="l00045"></a>00045 , <a class="code" href="class_c_ocr_example_image_view.html#63052a309baec315239b427aa7647b76">iState</a>(<a class="code" href="class_c_ocr_example_image_view.html#8e0e9e3030ee220d737a3e9e733390ec553253ec36b6a826ce4923c5dcf95a12">EInit</a>)<a name="l00046"></a>00046 , <a class="code" href="class_c_ocr_example_image_view.html#b7e54289c236dbd01581864006b4069f">iCrosshairEnabled</a>(EFalse)<a name="l00047"></a>00047 , <a class="code" href="class_c_ocr_example_image_view.html#a7f5826c4c1c2cbee83739946a8a013b">iBackgroundTaskDone</a>(EFalse)<a name="l00048"></a>00048 {<a name="l00049"></a>00049 }</pre></div><p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="301a5b741381c9ed497a7d8f7f10f782"></a><!-- doxytag: member="COcrExampleImageView::NewL" ref="301a5b741381c9ed497a7d8f7f10f782" args="(TOcrExampleSettingsData &aSettings)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="class_c_ocr_example_image_view.html">COcrExampleImageView</a> * COcrExampleImageView::NewL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a> & </td> <td class="mdname1" valign="top" nowrap> <em>aSettings</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Symbian two-phased constructor. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aSettings</em> </td><td>the application level settings </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of COcrExampleImageView </dd></dl><p>Definition at line <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00057">57</a> of file <a class="el" href="_ocr_example_image_view_8cpp-source.html">OcrExampleImageView.cpp</a>.<p>References <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00039">COcrExampleImageView()</a>.<p>Referenced by <a class="el" href="_ocr_example_appui_8cpp-source.html#l00035">COcrExampleAppUi::ConstructL()</a>.<div class="fragment"><pre class="fragment"><a name="l00058"></a>00058 {<a name="l00059"></a>00059 <a class="code" href="class_c_ocr_example_image_view.html">COcrExampleImageView</a>* <span class="keyword">self</span> = <span class="keyword">new</span> (ELeave) <a class="code" href="class_c_ocr_example_image_view.html#7cfaacbb7bdeefcb6bb02114fea43f70">COcrExampleImageView</a>(aSettings);<a name="l00060"></a>00060 <span class="keyword">self</span>->ConstructL();<a name="l00061"></a>00061 <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00062"></a>00062 }</pre></div><p> </td> </tr></table><a class="anchor" name="04bbd31ba9f2f99b17c69030e5cf96cb"></a><!-- doxytag: member="COcrExampleImageView::HandleSizeChange" ref="04bbd31ba9f2f99b17c69030e5cf96cb" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void COcrExampleImageView::HandleSizeChange </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Handle screen size change. <p>Definition at line <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00243">243</a> of file <a class="el" href="_ocr_example_image_view_8cpp-source.html">OcrExampleImageView.cpp</a>.<p>References <a class="el" href="_image_handler_8cpp-source.html#l00167">NOCRUtils::CImageHandler::FitToScreenL()</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00274">iBitMap</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00262">iContainer</a>, and <a class="el" href="_ocr_example_image_view_8h-source.html#l00277">iHandler</a>.<p>Referenced by <a class="el" href="_ocr_example_appui_8cpp-source.html#l00118">COcrExampleAppUi::HandleResourceChangeL()</a>.<div class="fragment"><pre class="fragment"><a name="l00244"></a>00244 {<a name="l00245"></a>00245 <span class="keywordflow">if</span> (<a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>)<a name="l00246"></a>00246 {<a name="l00247"></a>00247 TRect mainPaneRect;<a name="l00248"></a>00248 AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, mainPaneRect);<a name="l00249"></a>00249 <a name="l00250"></a>00250 <span class="comment">// if image is loaded, re-scale it</span><a name="l00251"></a>00251 <span class="keywordflow">if</span> ((<a class="code" href="class_c_ocr_example_image_view.html#56132cb68e64726ad0658571e44e9644">iHandler</a>) && (<a class="code" href="class_c_ocr_example_image_view.html#9eb6fa3188758350a81b83400892e787">iBitMap</a>))<a name="l00252"></a>00252 {<a name="l00253"></a>00253 TRAP_IGNORE(<a class="code" href="class_c_ocr_example_image_view.html#56132cb68e64726ad0658571e44e9644">iHandler</a>-><a class="code" href="class_n_o_c_r_utils_1_1_c_image_handler.html#5321ab83edffb2d7f3815c37aaaaad51">FitToScreenL</a>( mainPaneRect.Size() ));<a name="l00254"></a>00254 }<a name="l00255"></a>00255 <a name="l00256"></a>00256 <a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>->SetRect(mainPaneRect);<a name="l00257"></a>00257 }<a name="l00258"></a>00258 }</pre></div><p> </td> </tr></table><a class="anchor" name="a9048c3ff4f288da47ab9b2de1833749"></a><!-- doxytag: member="COcrExampleImageView::Id" ref="a9048c3ff4f288da47ab9b2de1833749" args="() const " --><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -