<?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[Hbitmap in Hbitmap]]></title><description><![CDATA[<p>morgen,</p>
<p>ich habe eine stream dessen bilder permanent in einem hbitmap gespeichert werden.<br />
Jetzte will ich ne Art Standbild extrahieren können und daneben anzeigen.</p>
<p>Theoretischach sollte es ja ausreichen einfach das eine hbitmap in das andere zu kopieren jedoch klappt es bei mir nicht so richtig.</p>
<p>HBITMAP eins;<br />
HBITMAP zwei;</p>
<p>zwei=eins;</p>
<p>Warum geht das nicht? Muss man evtl. wie beim laden auch LoadImage verwenden?</p>
<p>Bin für jegliche Hilfe dankbar.<br />
MISCHU</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/67232/hbitmap-in-hbitmap</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 05:02:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/67232.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Mar 2004 11:32:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hbitmap in Hbitmap on Sat, 06 Mar 2004 11:32:26 GMT]]></title><description><![CDATA[<p>morgen,</p>
<p>ich habe eine stream dessen bilder permanent in einem hbitmap gespeichert werden.<br />
Jetzte will ich ne Art Standbild extrahieren können und daneben anzeigen.</p>
<p>Theoretischach sollte es ja ausreichen einfach das eine hbitmap in das andere zu kopieren jedoch klappt es bei mir nicht so richtig.</p>
<p>HBITMAP eins;<br />
HBITMAP zwei;</p>
<p>zwei=eins;</p>
<p>Warum geht das nicht? Muss man evtl. wie beim laden auch LoadImage verwenden?</p>
<p>Bin für jegliche Hilfe dankbar.<br />
MISCHU</p>
]]></description><link>https://www.c-plusplus.net/forum/post/474391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/474391</guid><dc:creator><![CDATA[Mischu]]></dc:creator><pubDate>Sat, 06 Mar 2004 11:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to Hbitmap in Hbitmap on Sat, 06 Mar 2004 11:58:01 GMT]]></title><description><![CDATA[<p>Du kopierst dir ja nur das Handle und nicht das Bitmap an sich. Du könntest z.B. mit CreateCompatibleDC einen weiteren MemoryDC erstellen, in den du das ganze einfach nochmal hineinblittest <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/474400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/474400</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 06 Mar 2004 11:58:01 GMT</pubDate></item><item><title><![CDATA[Reply to Hbitmap in Hbitmap on Sat, 06 Mar 2004 13:59:44 GMT]]></title><description><![CDATA[<p>An diese Lösung habe ich natürlich auch schon gedacht, jedoch gibt es dabei ein Problem.</p>
<p>Ich verwende mehrer Prozeduren und am Ende eine Prozedur wird ja immer jedes DC beendet.</p>
<p>D.h. dass ich mein Bild ne millisekunde sehe und es dann wieder verloren ist weil der DC ja geleert oder gelöscht wurde.</p>
<p>Also ? gibts noch andere Möglichkeiten?</p>
<p>MISCHU</p>
]]></description><link>https://www.c-plusplus.net/forum/post/474459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/474459</guid><dc:creator><![CDATA[MISCHU]]></dc:creator><pubDate>Sat, 06 Mar 2004 13:59:44 GMT</pubDate></item><item><title><![CDATA[Reply to Hbitmap in Hbitmap on Sat, 06 Mar 2004 14:18:40 GMT]]></title><description><![CDATA[<p>Ich denke, dann hast du irgendwo einen Design-Fehler im Code. Zeig doch mal die entsprechende Stelle.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/474469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/474469</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 06 Mar 2004 14:18:40 GMT</pubDate></item><item><title><![CDATA[Reply to Hbitmap in Hbitmap on Mon, 08 Mar 2004 13:11:53 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">hdc = BeginPaint(hwnd, &amp;ps);

	screen_width  = ps.rcPaint.right  - ps.rcPaint.left;
	screen_height = ps.rcPaint.bottom - ps.rcPaint.top;

	tabelle_x=0;
	tabelle_y=0;

	memorydc=CreateCompatibleDC(hdc);
    oldbitmap=(HBITMAP)SelectObject(memorydc,D_backbitmap);

	hDC2 = CreateCompatibleDC(hdc);

	hBM = CreateCompatibleBitmap(hdc,screen_width,screen_height); 
	SelectObject(hDC2, hBM);

	PatBlt(hDC2, 0, 0, screen_width,screen_height, WHITENESS);
    SetBkMode(memorydc, TRANSPARENT);

    BitBlt(hDC2,tabelle_x+20,tabelle_y+21,D_width,D_height,memorydc,0,0,SRCCOPY);

//////////////////// REF BILD//////////////////////////////////////
	if(ref_image_dc_empty)
		{
		ref_image_dc=memorydc;
		ref_image_dc_empty=false;
		}
		BitBlt(hDC2,tabelle_x+20+160+9,tabelle_y+21,D_width,D_height,ref_image_dc,0,0,SRCCOPY);
</code></pre>
<p>MISCHU</p>
]]></description><link>https://www.c-plusplus.net/forum/post/474478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/474478</guid><dc:creator><![CDATA[MISCHU]]></dc:creator><pubDate>Mon, 08 Mar 2004 13:11:53 GMT</pubDate></item><item><title><![CDATA[Reply to Hbitmap in Hbitmap on Mon, 08 Mar 2004 13:13:41 GMT]]></title><description><![CDATA[<p>Du darfst dann natürlich nicht jedesmal in WM_PAINT einen neuen DC erstellen - außerdem fehlen bei dir die DeleteDC Aufrufe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/475704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/475704</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 08 Mar 2004 13:13:41 GMT</pubDate></item></channel></rss>