﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-你的CPP=我的CPP-随笔分类-C++ Code</title><link>http://www.cppblog.com/chenfeng/category/5845.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 24 May 2008 01:58:20 GMT</lastBuildDate><pubDate>Sat, 24 May 2008 01:58:20 GMT</pubDate><ttl>60</ttl><item><title>图像旋转公式</title><link>http://www.cppblog.com/chenfeng/archive/2008/01/04/40411.html</link><dc:creator>晨风</dc:creator><author>晨风</author><pubDate>Fri, 04 Jan 2008 10:04:00 GMT</pubDate><guid>http://www.cppblog.com/chenfeng/archive/2008/01/04/40411.html</guid><wfw:comment>http://www.cppblog.com/chenfeng/comments/40411.html</wfw:comment><comments>http://www.cppblog.com/chenfeng/archive/2008/01/04/40411.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/chenfeng/comments/commentRss/40411.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/chenfeng/services/trackbacks/40411.html</trackback:ping><description><![CDATA[<p><br>　　 图像旋转是指把定义的图像绕某一点以逆时针或顺时针方向旋转一定的角度，通常是指绕图像的中心以逆时针方向旋转。</p>
<p>　　 假设图像的左上角为（left, top),右下角为（right, bottom)，则图像上任意点（x0, y0）绕其中心（xcenter, ycenter)逆时针旋转angle角度后，新的坐标位置（x&#8242;, y&#8242;）的计算公式为：</p>
<p>xcenter = (right － left ＋ 1) ／ 2 ＋ left;<br>ycenter = (bottom － top ＋ 1) ／ 2 ＋ top;<br>x&#8242; = (x0 － xcenter) cos&#952; － (y0 － ycenter) sin&#952; ＋ xcenter;<br>y&#8242; = (x0 － xcenter) sin&#952; ＋ (y0 － ycenter) cos&#952; ＋ ycenter; </p>
<p>　　 与图像的镜像变换相类似，也采用按行逐点变换的方式实现图像的旋转</p>
<p>（摘录自<a href="http://v3.7880.com/Info/Article-79ea53c0.html">http://v3.7880.com/Info/Article-79ea53c0.html</a>）<br>hhh</p>
<img src ="http://www.cppblog.com/chenfeng/aggbug/40411.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/chenfeng/" target="_blank">晨风</a> 2008-01-04 18:04 <a href="http://www.cppblog.com/chenfeng/archive/2008/01/04/40411.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用c++处理XML文件</title><link>http://www.cppblog.com/chenfeng/archive/2007/12/25/39577.html</link><dc:creator>晨风</dc:creator><author>晨风</author><pubDate>Tue, 25 Dec 2007 06:46:00 GMT</pubDate><guid>http://www.cppblog.com/chenfeng/archive/2007/12/25/39577.html</guid><wfw:comment>http://www.cppblog.com/chenfeng/comments/39577.html</wfw:comment><comments>http://www.cppblog.com/chenfeng/archive/2007/12/25/39577.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/chenfeng/comments/commentRss/39577.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/chenfeng/services/trackbacks/39577.html</trackback:ping><description><![CDATA[今天要用c++处理一个XML文件，但是又不想用很庞大的库。<br><br>最后在网上找到了一个小巧的类CMarkup. 感觉非常好用。<br><br><a href="http://www.firstobject.com/dn_markup.htm">http://www.firstobject.com/dn_markup.htm</a><br><br>
<img src ="http://www.cppblog.com/chenfeng/aggbug/39577.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/chenfeng/" target="_blank">晨风</a> 2007-12-25 14:46 <a href="http://www.cppblog.com/chenfeng/archive/2007/12/25/39577.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>