<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx</link><description>In today's post, we're going to walk through a simple demonstration of Direct2D. We're not going to cover advanced features, such as interop with GDI/GDI+ or Direct3D. More on that in upcoming posts. Direct2D integrates seamlessly into the familiar Win32</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3145977</link><pubDate>Sun, 02 Nov 2008 15:14:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3145977</guid><dc:creator>Lionel Fourquaux</dc:creator><description>&lt;p&gt;Do you support other pixel formats than 32bppPBGRA (especially high dynamic range ones, e.g. 128bppPRGBAFloat) for bitmap render targets?&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3147081</link><pubDate>Tue, 04 Nov 2008 13:34:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3147081</guid><dc:creator>Adrian S</dc:creator><description>&lt;p&gt;Does anyone where/whether the SDK with the above D2D bits is available for download?&lt;/p&gt;
&lt;p&gt;Or will it be available later once the W7 Beta comes out?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3147369</link><pubDate>Tue, 04 Nov 2008 20:49:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3147369</guid><dc:creator>Tom Mulcahy</dc:creator><description>&lt;STRONG&gt;Do you support other pixel formats than 32bppPBGRA (especially high dynamic range ones, e.g. 128bppPRGBAFloat) for bitmap render targets?&lt;/STRONG&gt; 
&lt;P&gt;Lionel:&lt;/P&gt;
&lt;P&gt;Unfortunately, we do not support any high dynamic range formats.&amp;nbsp;We're looking into&amp;nbsp;adding this support for our next version (Windows 8).&lt;/P&gt;
&lt;P&gt;We do support a few other pixel formats. D2D pixel formats consist of a DXGI_FORMAT and a D2D1_ALPHA_MODE. We support&lt;/P&gt;
&lt;P&gt;1. (DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_PREMULTIPLIED)&lt;/P&gt;
&lt;P&gt;2. (DXGI_FORMAT_B8G8R8A8_UNORM,&lt;/P&gt;
&lt;P&gt;D2D1_ALPHA_MODE_IGNORE)&lt;/P&gt;
&lt;P&gt;3. (DXGI_FORMAT_A8_UNORM,&lt;/P&gt;
&lt;P&gt;D2D1_ALPHA_MODE_STRAIGHT)&lt;/P&gt;
&lt;P&gt;4. (DXGI_FORMAT_A8_UNORM,&lt;/P&gt;
&lt;P&gt;D2D1_ALPHA_MODE_PREMULTIPLIED) (same meaning as 3.)&lt;/P&gt;
&lt;P&gt;5. (DXGI_FORMAT_R8G8B8A8_UNORM, D2D1_ALPHA_MODE_IGNORE) (only supported on D2D1_RENDER_TARGET_USAGE_FORCE_HARDWARE_RENDERING targets)&lt;/P&gt;
&lt;P&gt;6. 5. (DXGI_FORMAT_R8G8B8A8_UNORM, D2D1_ALPHA_MODE_PREMULTIPLIED) (only supported on D2D1_RENDER_TARGET_USAGE_FORCE_HARDWARE_RENDERING targets)&lt;/P&gt;</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3147403</link><pubDate>Tue, 04 Nov 2008 22:20:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3147403</guid><dc:creator>Thomas.Olsen</dc:creator><description>&lt;P&gt;&lt;STRONG&gt;Does anyone where/whether the SDK with the above D2D bits is available for download? Or will it be available later once the W7 Beta comes out?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It will be available with the Windows 7 Beta.&lt;/P&gt;</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3147572</link><pubDate>Wed, 05 Nov 2008 04:06:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3147572</guid><dc:creator>Martin</dc:creator><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="COLOR:#1f497d;"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Direct2D is a 2D rendering API built on top of Direct3D. You have to either implement your own windowless controls using D2D, or use the standard USER32 windowed controls (e.g. button, edit box, listview, etc). It has always been possible to overlay a Win32 HWND over a Direct3D swap chain (and, by extension, a D2D render target). What you need to do is create your primary application window (&lt;B&gt;m_hwnd&lt;/B&gt;, below) with &lt;B&gt;WS_CLIPCHILDREN&lt;/B&gt; style and, then, when you need to pop up, say, an edit control, do the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create the window for the edit control window.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define ID_EDIT 1000&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DWORD dwWindowStyle =&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WS_CHILD | WS_VISIBLE |&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ES_LEFT | ES_NOHIDESEL | ES_AUTOHSCROLL | ES_AUTOVSCROLL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HWND hwndEdit = CreateWindow(&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEXT("edit"),&amp;nbsp;&amp;nbsp; // Class name&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Window text&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dwWindowStyle,&amp;nbsp; // Window style&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // x-coordinate of the upper-left corner&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // y-coordinate of the upper-left corner&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Width of the window for the edit control&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Height of the window for the edit control&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_hwnd,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;// Parent window&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (HMENU)ID_EDIT, // Control identifier&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HINST_THISCOMPONENT, // Instance handle&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:#1f497d;FONT-FAMILY:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3175245</link><pubDate>Thu, 01 Jan 2009 15:13:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3175245</guid><dc:creator>anonymous</dc:creator><description>&lt;p&gt;Wow! Some actual use of WIC..but hey wait there are no codecs except RAW codecs. Can Microsoft fix this and write some WIC codecs for more formats? Why not buy a company like Leadtools and end the format issue once and for all?&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3181843</link><pubDate>Tue, 13 Jan 2009 20:24:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3181843</guid><dc:creator>vvu</dc:creator><description>&lt;P&gt;&lt;STRONG&gt;hi,where and how to get the direct2d sdk?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:'Calibri','sans-serif';mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;"&gt;You can get Direct2D and DirectWrite with the Windows 7 Beta. See &lt;A href="http://msdn.microsoft.com/en-us/evalcenter/dd353271.aspx"&gt;&lt;SPAN style="COLOR:windowtext;"&gt;http://msdn.microsoft.com/en-us/evalcenter/dd353271.aspx&lt;/SPAN&gt;&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:'Calibri','sans-serif';mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:11pt;FONT-FAMILY:'Calibri','sans-serif';mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;"&gt;And here is the Windows 7 Beta SDK (which contains Direct2D libs/headers/etc): &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a91dc12a-fc94-4027-b67e-46bab7c5226c&amp;amp;DisplayLang=en"&gt;&lt;SPAN style="COLOR:windowtext;"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=a91dc12a-fc94-4027-b67e-46bab7c5226c&amp;amp;DisplayLang=en&lt;/SPAN&gt;&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3191482</link><pubDate>Mon, 26 Jan 2009 17:23:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3191482</guid><dc:creator>newbie</dc:creator><description>&lt;p&gt;Just to be clear - is Windows 7 a requirement, or is that just the distribution channel? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I needed something that works with Windows Server 2003 to do fast 2D image work, what would the best choices be? &amp;nbsp;Would going to Windows Server 2008 provide any additional options?&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3194017</link><pubDate>Thu, 29 Jan 2009 02:12:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194017</guid><dc:creator>Thomas.Olsen</dc:creator><description>&lt;p&gt;Just to be clear - is Windows 7 a requirement, or is that just the distribution channel? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I needed something that works with Windows Server 2003 to do fast 2D image work, what would the best choices be? &amp;nbsp;Would going to Windows Server 2008 provide any additional options?&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3194018</link><pubDate>Thu, 29 Jan 2009 02:12:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194018</guid><dc:creator>Thomas.Olsen</dc:creator><description>&lt;P&gt;&lt;STRONG&gt;Just to be clear - is Windows 7 a requirement, or is that just the distribution channel?&lt;/STRONG&gt; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Direct2D will ship on both Windows 7 and Windows Vista.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If I needed something that works with Windows Server 2003 to do fast 2D image work, what would the best choices be?&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;By "fast 2D image work", I assume you mean "fast render 2D content to an image". On Windows&amp;nbsp;Server&amp;nbsp;2003, your option is primarily&amp;nbsp;GDI+, or GDI and Windows Imaging Codecs (WIC).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Would going to Windows Server 2008 provide any additional options?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;No. Microsoft has not announced plans to ship Direct2D outside of Windows 7 and Vista.&lt;/P&gt;</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3194068</link><pubDate>Thu, 29 Jan 2009 04:36:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194068</guid><dc:creator>cprieto</dc:creator><description>&lt;p&gt;Is really Direct2D easier than Direct3D? they don't think so... &lt;a rel="nofollow" target="_new" href="http://braid-game.com/news/?p=466"&gt;http://braid-game.com/news/?p=466&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3194536</link><pubDate>Thu, 29 Jan 2009 23:54:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194536</guid><dc:creator>Thomas.Olsen</dc:creator><description>&lt;P&gt;&lt;STRONG&gt;Is really Direct2D easier than Direct3D? they don't think so... &lt;/STRONG&gt;&lt;A href="http://braid-game.com/news/?p=466" target=_new rel=nofollow&gt;&lt;STRONG&gt;http://braid-game.com/news/?p=466&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Direct2D is a general-purpose 2D rendering API. It isn't solely a "rectangle-drawing API". If you want a more&amp;nbsp;honest comparison, try a counter-example which draws antialiased ClearType text, buttons, lists, and most other common UI elements solely with Direct3D -- and then tell me whether you think it's easier than Direct2D. I don't think so. &lt;/P&gt;
&lt;P&gt;Furthermore, if&amp;nbsp;you're going to&amp;nbsp;use lines of code as the sole metric for comparing code, then it would be more honest to include fundamental things&amp;nbsp;such as&amp;nbsp;error-handling (eg. device loss, allocation failures, etc), comments, cleanup of resources upon completion, and other&amp;nbsp;common elements that professional developers wouldn't consider optional.&lt;/P&gt;</description></item><item><title>BeginPaint on WM_DISPLAYCHANGE</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3202138</link><pubDate>Sat, 14 Feb 2009 15:36:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3202138</guid><dc:creator>egtra</dc:creator><description>&lt;p&gt;Hello! &lt;/p&gt;
&lt;p&gt;In the demonstration code, BeginPaint is used on WM_DISPLAYCHANGE. I know the description about BeginPaint in MSDN library: “An application should not call BeginPaint except in response to a WM_PAINT message.”&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/dd183362.aspx"&gt;http://msdn.microsoft.com/en-us/library/dd183362.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In windows 7, BeginPaint on WM_DISPLAYCHANGE is allowed officially?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3211842</link><pubDate>Thu, 12 Mar 2009 01:46:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3211842</guid><dc:creator>Te-jé</dc:creator><description>&lt;p&gt;Where can I find a sample with how to use WIC with GDI?&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3224261</link><pubDate>Thu, 09 Apr 2009 02:43:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3224261</guid><dc:creator>Varun Bhartia</dc:creator><description>&lt;p&gt;There are many ways to do this, there is a good posting here &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.mvps.org/user32/gditutorial.html"&gt;http://www.mvps.org/user32/gditutorial.html&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;that shows how to create a dib section and render a bitmap with GDI. &lt;/p&gt;
&lt;p&gt;A good way to go about this is to decode the image with WIC. Here is good overview: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms737413"&gt;http://msdn.microsoft.com/en-us/library/ms737413&lt;/a&gt;(VS.85).aspx&lt;/p&gt;
&lt;p&gt;Once you have an IWICBitmapSource you can call CopyPixels on it and copy it into a dib buffer. Then you can basically bitblt it your hdc.&lt;/p&gt;
&lt;p&gt;Here are the steps:&lt;/p&gt;
&lt;p&gt;Decode the image using WIC:&lt;/p&gt;
&lt;p&gt;1. Create a WIC Factory&lt;/p&gt;
&lt;p&gt;2. Create a decoder from filename&lt;/p&gt;
&lt;p&gt;3. Get a particular frame by calling get frame&lt;/p&gt;
&lt;p&gt;4. Format convert into the correct pixel format - 32 BGR works well with GDI.&lt;/p&gt;
&lt;p&gt;5. Query Interface for an IWICBitmapSource.&lt;/p&gt;
&lt;p&gt;Setup a GDI DIB and draw to the screen. Much this is shown in tutorial four in the link above.&lt;/p&gt;
&lt;p&gt;1. Create a hBitmap by calling CreateDIBSection. &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/dd183494"&gt;http://msdn.microsoft.com/en-us/library/dd183494&lt;/a&gt;(VS.85).aspx&lt;/p&gt;
&lt;p&gt;2. CopyPixels from the IWICBitmapSource into the buffer used to create the dib section.&lt;/p&gt;
&lt;p&gt;3. In your WM_PAINT message handler you should create an hdc from CreateCompatibleDC.&lt;/p&gt;
&lt;p&gt;4. Then associate the hBitmap to the DC you just created - call SelectBitmap.&lt;/p&gt;
&lt;p&gt;5. Then you should copy the contents of the DC you created to the dc associated with the m_hWnd. Call BitBlt with the appropriate parameters.&lt;/p&gt;
&lt;p&gt;Be sure to clean up your resources.&lt;/p&gt;
&lt;p&gt;I hope this helps.&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3230062</link><pubDate>Fri, 24 Apr 2009 12:16:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230062</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hi, I 've been using it successfully except I cannot draw a bitmap. My code is this:&lt;/p&gt;
&lt;p&gt;void DrawImage(int x1,int y1,HBITMAP hB,float Op)&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;	BITMAP bo;&lt;/p&gt;
&lt;p&gt;	GetObject(hB,sizeof(bo),&amp;amp;bo);&lt;/p&gt;
&lt;p&gt;	WICBitmapAlphaChannelOption ao = WICBitmapUseAlpha;&lt;/p&gt;
&lt;p&gt;	IWICBitmap* wb = 0;&lt;/p&gt;
&lt;p&gt;	pImageFactory-&amp;gt;CreateBitmapFromHBITMAP(hB,(HPALETTE)GetStockObject(DEFAULT_PALETTE),ao,&amp;amp;wb);&lt;/p&gt;
&lt;p&gt;	if (wb)&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;		// Convert it&lt;/p&gt;
&lt;p&gt;		IWICFormatConverter*spConverter = 0;&lt;/p&gt;
&lt;p&gt;		pImageFactory-&amp;gt;CreateFormatConverter(&amp;amp;spConverter);&lt;/p&gt;
&lt;p&gt;		if (spConverter)&lt;/p&gt;
&lt;p&gt;			{&lt;/p&gt;
&lt;p&gt;			spConverter-&amp;gt;Initialize(wb,GUID_WICPixelFormat32bppPBGRA,WICBitmapDitherTypeNone,NULL,0.f,WICBitmapPaletteTypeMedianCut);&lt;/p&gt;
&lt;p&gt;			ID2D1Bitmap* b = 0;&lt;/p&gt;
&lt;p&gt;			pRT-&amp;gt;CreateBitmapFromWicBitmap(spConverter,0,&amp;amp;b);&lt;/p&gt;
&lt;p&gt;			if (b)&lt;/p&gt;
&lt;p&gt;				{&lt;/p&gt;
&lt;p&gt;				D2D1_RECT_F r;&lt;/p&gt;
&lt;p&gt;					r.left = (FLOAT)x1;&lt;/p&gt;
&lt;p&gt;					r.top = (FLOAT)y1;&lt;/p&gt;
&lt;p&gt;					r.right = (FLOAT)(x1 + bo.bmWidth);&lt;/p&gt;
&lt;p&gt;					r.bottom = (FLOAT)(y1 + bo.bmHeight);&lt;/p&gt;
&lt;p&gt;					pRT-&amp;gt;DrawBitmap(b,r,Op);&lt;/p&gt;
&lt;p&gt;					b-&amp;gt;Release();&lt;/p&gt;
&lt;p&gt;					}&lt;/p&gt;
&lt;p&gt;				spConverter-&amp;gt;Release();&lt;/p&gt;
&lt;p&gt;				}&lt;/p&gt;
&lt;p&gt;			wb-&amp;gt;Release();&lt;/p&gt;
&lt;p&gt;			}&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;It just draws a bitmap with black and some blue noise. &lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3230066</link><pubDate>Fri, 24 Apr 2009 12:45:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230066</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;After some testing, I saw that it is the WIC fault that creates a bad bitmap... Any clues ?&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3230335</link><pubDate>Sat, 25 Apr 2009 02:36:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230335</guid><dc:creator>scru</dc:creator><description>&lt;p&gt;Creating a button control atop a Window that has a HwndRenderTarget causes the button to leave temporary trails of itself and/or a black trail as the window is resized. &lt;/p&gt;
&lt;p&gt;Does anybody have any ideas on how to get around this? (Direct2D beta)&lt;/p&gt;
</description></item><item><title>re: Using Direct2D</title><link>http://blogs.technet.com/thomasolsen/archive/2008/11/02/using-direct2d.aspx#3230614</link><pubDate>Sun, 26 Apr 2009 12:53:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230614</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;I am trying to decode jpeg frames and display it using hWnd render target &lt;/p&gt;
&lt;p&gt;I use the following scenario:&lt;/p&gt;
&lt;p&gt;1)	create IWICStream &amp;nbsp;and initialize it with jpeg from memory &lt;/p&gt;
&lt;p&gt;2)	Decode it using &amp;nbsp;factory standard jpeg decoder&lt;/p&gt;
&lt;p&gt;3)	Get the frame from decoder and convert it to GUID_WICPixelFormat32bppBGRA (direct2d require) &lt;/p&gt;
&lt;p&gt;4)	Calls render function DisplayBitmap to display the frame.&lt;/p&gt;
&lt;p&gt;It is actually show the frame on the screen but the performances are poor.&lt;/p&gt;
&lt;p&gt;Drawing one frame take about 30 - 80 mill second (most of it is convert and display functions)&lt;/p&gt;
&lt;p&gt;Any idea why its take too much time?&lt;/p&gt;
</description></item></channel></rss>