<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/temtem/">
    <title>コード置き場</title>
    <link>http://w.atwiki.jp/temtem/</link>
    <atom:link href="https://w.atwiki.jp/temtem/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>コード置き場</description>

    <dc:language>ja</dc:language>
    <dc:date>2008-05-29T00:15:08+09:00</dc:date>
    <utime>1211987708</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/12.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/11.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/4.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/5.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/temtem/pages/6.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/14.html">
    <title>MDIのサンプル</title>
    <link>https://w.atwiki.jp/temtem/pages/14.html</link>
    <description>
      test    </description>
    <dc:date>2008-05-29T00:15:08+09:00</dc:date>
    <utime>1211987708</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/temtem/pages/1.html</link>
    <description>
      コード置き場です。    </description>
    <dc:date>2008-05-29T00:13:47+09:00</dc:date>
    <utime>1211987627</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/temtem/pages/2.html</link>
    <description>
      **index
-[[トップページ]]
-[[VisualC++]]
-[[OpenCV]]

----

**リンク
-[[ブログ&gt;&gt;http://d.hatena.ne.jp/hiroki0/]]


// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります


//**更新履歴
//#recent(20)

&amp;link_editmenu(text=ここを編集)    </description>
    <dc:date>2008-05-29T00:12:41+09:00</dc:date>
    <utime>1211987561</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/13.html">
    <title>VisualC++</title>
    <link>https://w.atwiki.jp/temtem/pages/13.html</link>
    <description>
      -[[MDIのサンプル]]    </description>
    <dc:date>2008-05-29T00:11:20+09:00</dc:date>
    <utime>1211987480</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/12.html">
    <title>OpenCVで処理した画像をDirectXで表示する。</title>
    <link>https://w.atwiki.jp/temtem/pages/12.html</link>
    <description>
      //cpp
HRESULT CreateTextureIPLImage(LPDIRECT3DDEVICE9 pDevice, IplImage* iplImage, UINT Width, UINT Height, UINT Levels, LPDIRECT3DTEXTURE9* ppTexture)
{	
	HRESULT hr;			
	
	//テクスチャ作成
	hr = pDevice-&gt;CreateTexture(Width, Height, Levels, 0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, ppTexture, NULL);
	if(FAILED(hr)){
		return hr;
	}

	//ロック
	D3DLOCKED_RECT pLockedRect;
	hr = (*ppTexture)-&gt;LockRect(0, &amp;pLockedRect, NULL, 0);
	if(FAILED(hr)){
		return hr;
	}

	//転送
	switch(iplImage-&gt;depth){
		case IPL_DEPTH_8U:
		{
			if(iplImage-&gt;nChannels &lt;= 2){//チャンネル数が2以下ならエラーを返す
				return E_FAIL;
			}
			
			int byte = iplImage-&gt;nChannels*8;
			unsigned long data; //32bit
			unsigned long r;
			unsigned long g;
			unsigned long b;
			unsigned long a;
			unsigned long *to = (unsigned long*)pLockedRect.pBits;
			for(UINT y=0; y&lt;Height; y++){
				for(UINT x=0; x&lt;Width; x++){
					data = 0;

					b = ((unsigned char*)(iplImage-&gt;imageData + iplImage-&gt;widthStep * y))[x * 3];		//B
					data += b;
					g = ((unsigned char*)(iplImage-&gt;imageData + iplImage-&gt;widthStep * y))[x * 3 + 1];	//G
					g &lt;&lt;= 8;
					data += g;
					r = ((unsigned char*)(iplImage-&gt;imageData + iplImage-&gt;widthStep * y))[x * 3 + 2];	//R
					r &lt;&lt;= 16;
					data += r;

					if(iplImage-&gt;nChannels == 4){
						a = ((unsigned char*)(iplImage-&gt;imageData + iplImage-&gt;widthStep * y))[x * 3 + 3];	//A
						a &lt;&lt;= 24;
						data += a;
					}else{
						data += 0xFF000000;
					}
					*to++ = data;
				}
			}
		}
		break;
		default:
			return E_FAIL;
			break;
	}

	//アンロック
	hr = (*ppTexture)-&gt;UnlockRect(0);
	if(FAILED(hr)){
		return hr;
	}

	return S_OK;
}    </description>
    <dc:date>2008-05-25T03:04:33+09:00</dc:date>
    <utime>1211652273</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/11.html">
    <title>OpenCV</title>
    <link>https://w.atwiki.jp/temtem/pages/11.html</link>
    <description>
      -[[OpenCVで処理した画像をDirectXで表示する。]]    </description>
    <dc:date>2008-05-25T03:03:00+09:00</dc:date>
    <utime>1211652180</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/3.html">
    <title>右メニュー</title>
    <link>https://w.atwiki.jp/temtem/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)


&amp;link_editmenu2(text=ここを編集)
    </description>
    <dc:date>2008-05-25T02:51:56+09:00</dc:date>
    <utime>1211651516</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/4.html">
    <title>プラグイン/ニュース</title>
    <link>https://w.atwiki.jp/temtem/pages/4.html</link>
    <description>
      * ニュース
@wikiのwikiモードでは
 #news(興味のある単語)
と入力することで、あるキーワードに関連するニュース一覧を表示することができます
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_174_ja.html


-----


たとえば、#news(wiki)と入力すると以下のように表示されます。


#news(wiki)
    </description>
    <dc:date>2008-05-25T02:51:56+09:00</dc:date>
    <utime>1211651516</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/5.html">
    <title>プラグイン/編集履歴</title>
    <link>https://w.atwiki.jp/temtem/pages/5.html</link>
    <description>
      * 更新履歴
@wikiのwikiモードでは
 #recent(数字)
と入力することで、wikiのページ更新履歴を表示することができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_117_ja.html


-----


たとえば、#recent(20)と入力すると以下のように表示されます。


#recent(20)
    </description>
    <dc:date>2008-05-25T02:51:56+09:00</dc:date>
    <utime>1211651516</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/temtem/pages/6.html">
    <title>プラグイン/アーカイブ</title>
    <link>https://w.atwiki.jp/temtem/pages/6.html</link>
    <description>
      * アーカイブ
@wikiのwikiモードでは
 #archive_log()
と入力することで、特定のウェブページを保存しておくことができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/25_171_ja.html


-----


たとえば、#archive_log()と入力すると以下のように表示されます。
保存したいURLとサイト名を入力して&quot;アーカイブログ&quot;をクリックしてみよう


#archive_log()
    </description>
    <dc:date>2008-05-25T02:51:56+09:00</dc:date>
    <utime>1211651516</utime>
  </item>
  </rdf:RDF>
