📄 class_c_my_picture.html
字号:
<tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>MGraphicsDeviceMap * </td> <td class="mdname" nowrap> <em>aMap</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Draw the picture <p>Definition at line <a class="el" href="_my_picture_8cpp-source.html#l00043">43</a> of file <a class="el" href="_my_picture_8cpp-source.html">MyPicture.cpp</a>.<p>References <a class="el" href="_my_picture_8h-source.html#l00075">iBitmap</a>, and <a class="el" href="_my_picture_8h-source.html#l00074">iSizeInTwips</a>.<div class="fragment"><pre class="fragment"><a name="l00047"></a>00047 {<a name="l00048"></a>00048 TRect bitmapRect=aMap->TwipsToPixels(TRect(TPoint(),<a class="code" href="class_c_my_picture.html#6691efee0654843763373e355702d58f">iSizeInTwips</a>));<a name="l00049"></a>00049 bitmapRect.Move(aTopLeft);<a name="l00050"></a>00050 aGc.Reset();<a name="l00051"></a>00051 aGc.SetClippingRect(aClipRect);<a name="l00052"></a>00052 aGc.DrawBitmap(bitmapRect, <a class="code" href="class_c_my_picture.html#26276106331cba77cd405dd3ad3d4975">iBitmap</a>);<a name="l00053"></a>00053 }</pre></div><p> </td> </tr></table><a class="anchor" name="c184e57b42d93178b486f72b5a4afb25"></a><!-- doxytag: member="CMyPicture::ExternalizeL" ref="c184e57b42d93178b486f72b5a4afb25" args="(RWriteStream &aStream) const " --><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 CMyPicture::ExternalizeL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">RWriteStream & </td> <td class="mdname1" valign="top" nowrap> <em>aStream</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>There's no need for it in this , but must be implemented. <p>Definition at line <a class="el" href="_my_picture_8cpp-source.html#l00059">59</a> of file <a class="el" href="_my_picture_8cpp-source.html">MyPicture.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00060"></a>00060 {<a name="l00061"></a>00061 <span class="comment">// No implementation required</span><a name="l00062"></a>00062 }</pre></div><p> </td> </tr></table><a class="anchor" name="0669e83225c8fed63fc4740635ff3273"></a><!-- doxytag: member="CMyPicture::SetOriginalSizeInTwips" ref="0669e83225c8fed63fc4740635ff3273" args="(TSize aSize)" --><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 CMyPicture::SetOriginalSizeInTwips </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TSize </td> <td class="mdname1" valign="top" nowrap> <em>aSize</em> </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>Sets the picture's size in twips. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aSize</em> </td><td>Size. </td></tr> </table></dl><p>Definition at line <a class="el" href="_my_picture_8cpp-source.html#l00068">68</a> of file <a class="el" href="_my_picture_8cpp-source.html">MyPicture.cpp</a>.<p>References <a class="el" href="_my_picture_8h-source.html#l00074">iSizeInTwips</a>.<div class="fragment"><pre class="fragment"><a name="l00069"></a>00069 {<a name="l00070"></a>00070 <a class="code" href="class_c_my_picture.html#6691efee0654843763373e355702d58f">iSizeInTwips</a> = aSize;<a name="l00071"></a>00071 }</pre></div><p> </td> </tr></table><a class="anchor" name="a64002dd74877f850f5e7f18cf98330c"></a><!-- doxytag: member="CMyPicture::GetOriginalSizeInTwips" ref="a64002dd74877f850f5e7f18cf98330c" args="(TSize &aSize) const " --><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 CMyPicture::GetOriginalSizeInTwips </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TSize & </td> <td class="mdname1" valign="top" nowrap> <em>aSize</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Returns the picture's size in twips. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aSize</em> </td><td>Size. </td></tr> </table></dl><p>Definition at line <a class="el" href="_my_picture_8cpp-source.html#l00077">77</a> of file <a class="el" href="_my_picture_8cpp-source.html">MyPicture.cpp</a>.<p>References <a class="el" href="_my_picture_8h-source.html#l00074">iSizeInTwips</a>.<div class="fragment"><pre class="fragment"><a name="l00078"></a>00078 {<a name="l00079"></a>00079 aSize = <a class="code" href="class_c_my_picture.html#6691efee0654843763373e355702d58f">iSizeInTwips</a>;<a name="l00080"></a>00080 }</pre></div><p> </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="_my_picture_8h-source.html">MyPicture.h</a><li><a class="el" href="_my_picture_8cpp-source.html">MyPicture.cpp</a></ul><hr><table x-use-null-cells style="x-cell-content-align: top; width: 100%; border-spacing: 0px; border-spacing: 0px;" cellspacing=0 width=100%> <col style="width: 50%;"> <col style="width: 50%;"> <tr style="x-cell-content-align: top;" valign=top> <td style="width: 50%; padding-right: 10px; padding-left: 10px; border-right-style: None; border-left-style: None; border-top-style: None; border-bottom-style: None;" width=50%> <p style="font-family: Arial;"><small style="font-size: smaller;">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -