<?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[Größe einer Bitmap ändern]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>Also ich möchte eine via LoadBitmap() geladene Bitmap (Typ: HBITMAP) der aktuellen Monitorauflösung anpassen... Wie mach ich das ?</p>
<p>der Code(-Ausschnitt) funzt schon mal nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> :</p>
<pre><code class="language-cpp">HBITMAP	hbmpOldBitsSrc,
					hbmpOldBitsDest,
					hbmpNewLayer,
					hbmpMenuBar;
			HDC		hdcBmpSrcMem,
					hdcBmpDestMem;
			BITMAP	bmInformation;

			hbmpMenuBar		= LoadBitmap(g_hInst, MAKEINTRESOURCE(BMP_MAIN_MENU_BAR));
			hdcBmpSrcMem	= CreateCompatibleDC(NULL);
			hdcBmpDestMem	= CreateCompatibleDC(NULL);
			hbmpOldBitsSrc	= (HBITMAP)SelectObject(hdcBmpSrcMem, hbmpMenuBar);
			GetObject(hbmpMenuBar, sizeof(BITMAP), &amp;bmInformation);
			hbmpNewLayer	= CreateCompatibleBitmap(NULL, iWndMainXSize, iWndMainYSize);
			hbmpOldBitsDest = (HBITMAP)SelectObject(hdcBmpDestMem, hbmpNewLayer);
			StretchBlt(hdcBmpDestMem, 0, 0, iWndMainXSize, iWndMainYSize, hdcBmpSrcMem, 0, 0, bmInformation.bmWidth, bmInformation.bmHeight, SRCCOPY);
// =&gt; in hbmpNewLayer sollte jez die vergrößerte Bitmap stehen
// ich weiß ich weiß GDI Leaks ...aber is nur n Test!
</code></pre>
<p>Könnt ihr mir büdde helfen...</p>
<p>PS: Benutze C/C++ und WinAPI unter Visual C++ 6.0</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/144784/größe-einer-bitmap-ändern</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 22:47:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/144784.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Apr 2006 16:51:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Größe einer Bitmap ändern on Fri, 21 Apr 2006 16:51:54 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>Also ich möchte eine via LoadBitmap() geladene Bitmap (Typ: HBITMAP) der aktuellen Monitorauflösung anpassen... Wie mach ich das ?</p>
<p>der Code(-Ausschnitt) funzt schon mal nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> :</p>
<pre><code class="language-cpp">HBITMAP	hbmpOldBitsSrc,
					hbmpOldBitsDest,
					hbmpNewLayer,
					hbmpMenuBar;
			HDC		hdcBmpSrcMem,
					hdcBmpDestMem;
			BITMAP	bmInformation;

			hbmpMenuBar		= LoadBitmap(g_hInst, MAKEINTRESOURCE(BMP_MAIN_MENU_BAR));
			hdcBmpSrcMem	= CreateCompatibleDC(NULL);
			hdcBmpDestMem	= CreateCompatibleDC(NULL);
			hbmpOldBitsSrc	= (HBITMAP)SelectObject(hdcBmpSrcMem, hbmpMenuBar);
			GetObject(hbmpMenuBar, sizeof(BITMAP), &amp;bmInformation);
			hbmpNewLayer	= CreateCompatibleBitmap(NULL, iWndMainXSize, iWndMainYSize);
			hbmpOldBitsDest = (HBITMAP)SelectObject(hdcBmpDestMem, hbmpNewLayer);
			StretchBlt(hdcBmpDestMem, 0, 0, iWndMainXSize, iWndMainYSize, hdcBmpSrcMem, 0, 0, bmInformation.bmWidth, bmInformation.bmHeight, SRCCOPY);
// =&gt; in hbmpNewLayer sollte jez die vergrößerte Bitmap stehen
// ich weiß ich weiß GDI Leaks ...aber is nur n Test!
</code></pre>
<p>Könnt ihr mir büdde helfen...</p>
<p>PS: Benutze C/C++ und WinAPI unter Visual C++ 6.0</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1042122</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1042122</guid><dc:creator><![CDATA[ActiveO2Fitness]]></dc:creator><pubDate>Fri, 21 Apr 2006 16:51:54 GMT</pubDate></item><item><title><![CDATA[Reply to Größe einer Bitmap ändern on Sat, 22 Apr 2006 06:50:14 GMT]]></title><description><![CDATA[<p>Gib mal bei CreateCompatibleBitmap hdcBmpSrcMem an...</p>
<p>Falls das noch nicht hilft: wie genau sieht das Nicht-Funktionieren denn aus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1042356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1042356</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 22 Apr 2006 06:50:14 GMT</pubDate></item></channel></rss>