<?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[Lösung zum Kopieren von Bitmaps gesucht]]></title><description><![CDATA[<p>Hallo allerseits,</p>
<p>wenn ich a und b habe, beide vom Typ CBitmap, und ich möchte, dass b den gleichen Inhalt hat wie a ... wie geht das?</p>
<p>So sähe die einfachste Methode aus, aber das geht bei CBitmap scheinbar nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>[cpp ]<br />
{<br />
CBitmap a, b;<br />
a.LoadBitmap( irgendwas );<br />
...<br />
b = a; // &lt;= 'CBitmap' 'operator =' function is unavailable<br />
}<br />
[/cpp ]</p>
<p>Warum nicht? Und wie lässt sich das Problem beheben?</p>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80814/lösung-zum-kopieren-von-bitmaps-gesucht</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 15:25:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80814.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Jul 2004 12:06:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Lösung zum Kopieren von Bitmaps gesucht on Sun, 25 Jul 2004 12:06:41 GMT]]></title><description><![CDATA[<p>Hallo allerseits,</p>
<p>wenn ich a und b habe, beide vom Typ CBitmap, und ich möchte, dass b den gleichen Inhalt hat wie a ... wie geht das?</p>
<p>So sähe die einfachste Methode aus, aber das geht bei CBitmap scheinbar nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>[cpp ]<br />
{<br />
CBitmap a, b;<br />
a.LoadBitmap( irgendwas );<br />
...<br />
b = a; // &lt;= 'CBitmap' 'operator =' function is unavailable<br />
}<br />
[/cpp ]</p>
<p>Warum nicht? Und wie lässt sich das Problem beheben?</p>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/567775</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/567775</guid><dc:creator><![CDATA[Bugmaster *01]]></dc:creator><pubDate>Sun, 25 Jul 2004 12:06:41 GMT</pubDate></item><item><title><![CDATA[Reply to Lösung zum Kopieren von Bitmaps gesucht on Mon, 26 Jul 2004 11:50:27 GMT]]></title><description><![CDATA[<p>Warum nicht?<br />
Weil der = Operator für diese Klasse nicht verfügbar ist.<br />
Du müsstest ihn dir also selber passend überladen.</p>
<p>Eine Möglichkeit die du probieren könntest (ohne Garantie):</p>
<pre><code>1. a.GetObject(somestruct); //Strukturdaten der Bitmap holen
2. b.Attach(somestruct); //Das GDI-Objekt mit Object b verbinden
</code></pre>
<p>Ansonsten müsstest du erst die Größe der Bitmap a ermitteln (a.GetBitmap(~); )<br />
dann Object b mit diesen Größen einrichten (b.CreateCompatibleBitmap(~); )<br />
und dann von Object a in Object b reinblitten (CDC::BitBlt(von a nach b);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568399</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 26 Jul 2004 11:50:27 GMT</pubDate></item><item><title><![CDATA[Reply to Lösung zum Kopieren von Bitmaps gesucht on Tue, 27 Jul 2004 19:24:54 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>Vielen Dank!</p>
<p>Habe die zweite Methode genommen, eigentlich ganz einfach ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/569819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569819</guid><dc:creator><![CDATA[Bugmaster *01]]></dc:creator><pubDate>Tue, 27 Jul 2004 19:24:54 GMT</pubDate></item></channel></rss>