<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Grafik laden und drehen crasht]]></title><description><![CDATA[<p>Hi. Ich lade eine Grafik und will diese mit Hilfe einer Funktion von CodeGuru rotieren lassen (um 90°), da ich mit PlgBlt() leider nicht klarkomme.</p>
<p>Leider crasht die Zeile mit GetRotatedBitmap böse. Hat jemand eine Ahnung wieso? Danke!!</p>
<p>HANDLE GetRotatedBitmap( HANDLE hDIB, float radians, COLORREF clrBack )<br />
Quelle von <a href="http://www.codeguru.com/Cpp/G-M/bitmap/specialeffects/article.php/c1743" rel="nofollow">http://www.codeguru.com/Cpp/G-M/bitmap/specialeffects/article.php/c1743</a></p>
<pre><code class="language-cpp">HBITMAP hBitmap;
hBitmap = (HBITMAP)LoadImage(NULL, startfilename, IMAGE_BITMAP, 0, 0,  LR_LOADFROMFILE | LR_CREATEDIBSECTION); 

HANDLE hBitmap2 = GetRotatedBitmap( hBitmap, 1.57f, 0 ); // crash!

HDC hdcSrc = CreateCompatibleDC(NULL);
SelectObject(hdcSrc, hBitmap2);
StretchBlt(...);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/201819/grafik-laden-und-drehen-crasht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 01:22:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201819.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Jan 2008 12:54:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Grafik laden und drehen crasht on Fri, 04 Jan 2008 12:54:12 GMT]]></title><description><![CDATA[<p>Hi. Ich lade eine Grafik und will diese mit Hilfe einer Funktion von CodeGuru rotieren lassen (um 90°), da ich mit PlgBlt() leider nicht klarkomme.</p>
<p>Leider crasht die Zeile mit GetRotatedBitmap böse. Hat jemand eine Ahnung wieso? Danke!!</p>
<p>HANDLE GetRotatedBitmap( HANDLE hDIB, float radians, COLORREF clrBack )<br />
Quelle von <a href="http://www.codeguru.com/Cpp/G-M/bitmap/specialeffects/article.php/c1743" rel="nofollow">http://www.codeguru.com/Cpp/G-M/bitmap/specialeffects/article.php/c1743</a></p>
<pre><code class="language-cpp">HBITMAP hBitmap;
hBitmap = (HBITMAP)LoadImage(NULL, startfilename, IMAGE_BITMAP, 0, 0,  LR_LOADFROMFILE | LR_CREATEDIBSECTION); 

HANDLE hBitmap2 = GetRotatedBitmap( hBitmap, 1.57f, 0 ); // crash!

HDC hdcSrc = CreateCompatibleDC(NULL);
SelectObject(hdcSrc, hBitmap2);
StretchBlt(...);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1430587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430587</guid><dc:creator><![CDATA[rotati]]></dc:creator><pubDate>Fri, 04 Jan 2008 12:54:12 GMT</pubDate></item></channel></rss>