<?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[TBitmap mit eigenem TCanvas-Object]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>Ich habe ein eigene TBitmap und ein eigenes TCanvas-Object mit</p>
<p>Graphics::TBitmap *myBitmap = new Graphics::TBitmap() ;<br />
TCanvas *myCanvas = new TCanvas() ;</p>
<p>erstellt.</p>
<p>Ich will jetzt die Canvas der Bitmap durch die eigene Canvas ersetzen!<br />
etwa so: myBitmap-&gt;Handle-&gt;Canvas = myCanvas ;</p>
<p>Das geht aber nicht, da diese nur lesbar ist.</p>
<p>Vielen Dank für eure Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76694/tbitmap-mit-eigenem-tcanvas-object</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 02:23:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76694.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Jun 2004 12:11:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 12:11:35 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>Ich habe ein eigene TBitmap und ein eigenes TCanvas-Object mit</p>
<p>Graphics::TBitmap *myBitmap = new Graphics::TBitmap() ;<br />
TCanvas *myCanvas = new TCanvas() ;</p>
<p>erstellt.</p>
<p>Ich will jetzt die Canvas der Bitmap durch die eigene Canvas ersetzen!<br />
etwa so: myBitmap-&gt;Handle-&gt;Canvas = myCanvas ;</p>
<p>Das geht aber nicht, da diese nur lesbar ist.</p>
<p>Vielen Dank für eure Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539842</guid><dc:creator><![CDATA[marcLB]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:11:35 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 12:15:59 GMT]]></title><description><![CDATA[<p>Was genau hast Du denn vor? Wieso willst Du dem Bitmap einen anderen Canvas zuweisen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539847</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:15:59 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 12:43:38 GMT]]></title><description><![CDATA[<p>Ich will in dem neuen Canvas eine Koordinatentransformation ( Drehen, Verschieben9 usw. vornehmen.</p>
<p>Die Bitmap brauche ich um ein Flackern des Bildes zu verhindern. Außerdem werden aus Performens-Gründen immer nur die Teile der Bitmap auf den Bildschirm kopiert, die geändert wurden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539891</guid><dc:creator><![CDATA[marcLB]]></dc:creator><pubDate>Mon, 14 Jun 2004 12:43:38 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 13:00:54 GMT]]></title><description><![CDATA[<p>TCanvas::CopyRect etc.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539909</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 14 Jun 2004 13:00:54 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 13:44:36 GMT]]></title><description><![CDATA[<p>Der &quot;Moderator&quot; hat das Problem nicht verstanden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539973</guid><dc:creator><![CDATA[marcLB]]></dc:creator><pubDate>Mon, 14 Jun 2004 13:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 13:53:05 GMT]]></title><description><![CDATA[<p>Gut möglich. Gut möglich aber auch, dass du selbst das Problem nicht wirklich verstehst und deshalb mit deinem generellen Lösungsansatz auf dem Holzweg bist. <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>
<p>Vielleicht erklärst du ja mal, warum CopyRect deiner Meinung nach ungeeignet ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539983</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 14 Jun 2004 13:53:05 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 13:53:14 GMT]]></title><description><![CDATA[<p>Vielleicht so:<br />
myBitmap-&gt;Canvas-&gt;Handle = myCanvas-&gt;Handle</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539984</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Mon, 14 Jun 2004 13:53:14 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 14:16:36 GMT]]></title><description><![CDATA[<p>Hallo ,</p>
<p>ich mache folgendes:</p>
<p>TCanvas *myCanvas = new TCanvas() ;<br />
HWND notUsed = NULL ;<br />
myCanvas-&gt;Handle = GetDeviceContext(notUsed) ;<br />
myCanvas-&gt;LineTo(0,0) ;<br />
myCanvas-&gt;MoveTo(100,100) ;</p>
<p>dann erfolgt die Ausgabe direkt auf dem Bildschirm.</p>
<p>Nun will ich aber erst in eine Bitmap schreiben, daß heißt ich muß das &quot;myCanvas&quot; meiner Bitmap zuordnen.<br />
Die letzte Antwort:<br />
myCanvas-&gt;Handle = myBitmap-&gt;Canvas-&gt;Handle ;<br />
klingt gut aber es funktioniert nicht. Die Bitmap bleibt leer.</p>
<p>Hat jemand vielleicht einen guten Tip.</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540005</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540005</guid><dc:creator><![CDATA[marcLB]]></dc:creator><pubDate>Mon, 14 Jun 2004 14:16:36 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 14:36:30 GMT]]></title><description><![CDATA[<p>Noch eine, keineswegs abwertend gemeinte Frage: wozu soll das gut sein? Was willst du erreichen bzw. was soll dein Programm können?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540025</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 14 Jun 2004 14:36:30 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 15:01:01 GMT]]></title><description><![CDATA[<p>Und da sind wir wieder bei meiner ersten Frage. Ich fürchte auch, dass marcLB mit seinem Lösungsweg auf dem Holzweg ist.</p>
<p>Übrigens gibt es - speziell um das Flackern zu vermeiden - bei einigen Komponenten die Eigenschaft DoubleBuffered. Die macht schon genau das, von dem ich glaube, dass Du es versuchst. Schau Dir mal TPanel an. Da kann man alles drauf plazieren und sie unterstütz Doppelpufferung.</p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540036</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 14 Jun 2004 15:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to TBitmap mit eigenem TCanvas-Object on Mon, 14 Jun 2004 15:38:50 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich will Canvas überschreiben, damit ich die vorhanden Zeichenfunktionen durch Koordinatentransformationen verändern kann. Dazu erhält es noch weitere Funktionen wie das Setzen eines Koordinatensystems, das Wiederherstellen einzelner Bildbereiche usw.</p>
<p>Ich muß eine verhältnismäßig komplexe Graphik abbilden, deren Berechnung und Darstellung relativ zeitaufwendig ist und noch dazu in relativ kurzen Abständen erneuert werden muß. Dabei müssen einzelnen Graphicelemente (Rechtecke und Polygone) gedreht, gespiegelt usw. werden.</p>
<p>Das ich aus Perfomensgründen bei der Änderung eines kleinen Bildbereiches das ganze Bild nicht neu zeichnen kann, will ich dazu eine Bitmap benutzen. Zum Beispiel: Meine neue, überschriebene Funktion TCanvas-&gt;Rectangle(...) wird nicht nur das gedrehte, gespiegelte Rechteck zeichnen, sondern auch in einer Liste dieses Rechteck sich als Veränderung merken. Mit einer speziellen Funktion kann ich dann bei Bedarf das alte Bild wieder herstellen.</p>
<p>Da ich mehrere solche Bilder mit unterschiedlichen Inhalten darstellen will, will ich eine Ableitung von TPanel, oder TForm oder ähnliches mit den obengenannten Eigenschaften schaffen.</p>
<p>Sicherlich gibt es noch andere Wege. Es gibt immer andere Wege. Wenn Ihr andere, elegantere und effizentere Wege kennt, dann nennt sie mir bitte.</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540076</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540076</guid><dc:creator><![CDATA[marcLB]]></dc:creator><pubDate>Mon, 14 Jun 2004 15:38:50 GMT</pubDate></item></channel></rss>