<?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[teil eines TBitmap in ein anderes TBitmap kopieren]]></title><description><![CDATA[<p>hallo</p>
<p>hab eine einfache frage<br />
(Borland c++ Builder 6 win xp sp 2)</p>
<p>ich will ein teil eines bitmaps in einen anderen bitmap speichern<br />
also ich habe ein walkcykle und will nun ein bestimmtes bild ausschneiden damit ich das anzeigen kann</p>
<pre><code>for(i = 0; i &lt;= EinBilderGroesse; i++)
  {
   for(j = 0; j &lt;= EinBilderGroesse; j++)
    {
     PixelFarbe = WalkeCykleBitmap-&gt;Canvas-&gt;Pixels[i+BilderAnfangX][j+BilderAnfangY];
     AktuellesBitmap-&gt;Canvas-&gt;Pixels[i][j] = PixelFarbe;
    }                   //kopiert das bild was gebraucht wird aus dem walkcykle
  }
   EinPfad = Pfad + &quot;\\&quot; + &quot;neu.bmp&quot;;
   AktuellesBitmap-&gt;SaveToFile(EinPfad);
</code></pre>
<p>ich bekomme keine fehlermeldung, und es fkt auch<br />
nur wenn ich aktuellesBitmap speichere bekomme ich ein leeres bmp<br />
also fkt der kopiervorgang nicht.<br />
wenn ich pixelfarbe mit einer festen farbe clRed ersetze müsste eigendlich das ganze bitmap rot werden, das fkt auch nicht</p>
<p>könnt ihr mir bitte helfen,<br />
kennt ihr eine schnellere kopiermethode<br />
oder habt bessere vorschläge für die lösung des problems?</p>
<p>danke<br />
flo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/193418/teil-eines-tbitmap-in-ein-anderes-tbitmap-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 02:01:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193418.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Sep 2007 22:16:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Tue, 25 Sep 2007 22:16:07 GMT]]></title><description><![CDATA[<p>hallo</p>
<p>hab eine einfache frage<br />
(Borland c++ Builder 6 win xp sp 2)</p>
<p>ich will ein teil eines bitmaps in einen anderen bitmap speichern<br />
also ich habe ein walkcykle und will nun ein bestimmtes bild ausschneiden damit ich das anzeigen kann</p>
<pre><code>for(i = 0; i &lt;= EinBilderGroesse; i++)
  {
   for(j = 0; j &lt;= EinBilderGroesse; j++)
    {
     PixelFarbe = WalkeCykleBitmap-&gt;Canvas-&gt;Pixels[i+BilderAnfangX][j+BilderAnfangY];
     AktuellesBitmap-&gt;Canvas-&gt;Pixels[i][j] = PixelFarbe;
    }                   //kopiert das bild was gebraucht wird aus dem walkcykle
  }
   EinPfad = Pfad + &quot;\\&quot; + &quot;neu.bmp&quot;;
   AktuellesBitmap-&gt;SaveToFile(EinPfad);
</code></pre>
<p>ich bekomme keine fehlermeldung, und es fkt auch<br />
nur wenn ich aktuellesBitmap speichere bekomme ich ein leeres bmp<br />
also fkt der kopiervorgang nicht.<br />
wenn ich pixelfarbe mit einer festen farbe clRed ersetze müsste eigendlich das ganze bitmap rot werden, das fkt auch nicht</p>
<p>könnt ihr mir bitte helfen,<br />
kennt ihr eine schnellere kopiermethode<br />
oder habt bessere vorschläge für die lösung des problems?</p>
<p>danke<br />
flo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372712</guid><dc:creator><![CDATA[FJK]]></dc:creator><pubDate>Tue, 25 Sep 2007 22:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 05:33:18 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-18038.html" rel="nofollow">CStoll</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372748</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372748</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 26 Sep 2007 05:33:18 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 07:48:41 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Zum Kopieren eines Bitmapteiles gibt es doch TCanvas::CopyRect.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372797</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 26 Sep 2007 07:48:41 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 09:08:56 GMT]]></title><description><![CDATA[<p>hmm</p>
<p>ok danke</p>
<pre><code class="language-cpp">AktuellesBitmap-&gt;Canvas-&gt;CopyRect(ARect, WalkeCykleBitmap, BRect);
</code></pre>
<p>nur damit ich das richtig verstehe</p>
<p>ARect = ist die größe des Bildes, also von AktuellesBitmap, oder das wo es hinkopiert werden soll</p>
<p>BRect = ist die fläche die wir kopieren wollen</p>
<p>in die mitte müss doch das bild von dem wir kopieren wollen, nur ist soll das ein TCanvas sein, was ist das?<br />
WalkeCykleBitmap ist ein TBitmap</p>
<p>danke</p>
<p>flo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372882</guid><dc:creator><![CDATA[FJK]]></dc:creator><pubDate>Wed, 26 Sep 2007 09:08:56 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 09:15:46 GMT]]></title><description><![CDATA[<p>ARect - ist das Zielrechteck (bei dir in AktuellesBitmap)<br />
BRect - ist das Quellrechteck (aus WalkeCykleBitmap)<br />
Du mußt das Canvas angeben aus dem du kopieren willst, also so</p>
<pre><code class="language-cpp">AktuellesBitmap-&gt;Canvas-&gt;CopyRect(ARect, WalkeCykleBitmap-&gt;Canvas, BRect);
</code></pre>
<p>Das steht aber auch alles in der Hilfe (mit Beispiel).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372897</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 26 Sep 2007 09:15:46 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 09:18:52 GMT]]></title><description><![CDATA[<p>Schau doch mal in die Hilfe zu CopyRect, da ist auch ein Beispiel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372905</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372905</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 26 Sep 2007 09:18:52 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 10:25:35 GMT]]></title><description><![CDATA[<p>danke</p>
<p>ich hab in der hilfe nachgeschaut, leider ist die bei mir jetzt auf engl.<br />
und das mit dem canvas war mir nicht klar<br />
kann man die hilfe auf deutsch updaten?</p>
<p>hab da immer noch ein problem</p>
<p>er zeigt leider nix an, in dem gespeicherten bild.<br />
wenn ich walkcyklebitmap speichere, dann fkt es.</p>
<pre><code class="language-cpp">int i, j, BilderAnfangX, BilderAnfangY;
 AnsiString EinPfad;
 TColor PixelFarbe;
 TRect ARect, BRect;

 ARect.left    = 0;
 ARect.top     = 0;
 ARect.right   = EinBilderGroesse;
 ARect.bottom  = EinBilderGroesse;

 BilderAnfangX = EinBilderGroesse * (EinBildPosX - 1);
 BilderAnfangY = EinBilderGroesse * (EinBildPosY - 1);

 BRect.left    = BilderAnfangX;
 BRect.top     = BilderAnfangY;
 BRect.right   = BilderAnfangX + EinBilderGroesse;
 BRect.bottom  = BilderAnfangY + EinBilderGroesse;

 AktuellesBitmap-&gt;Canvas-&gt;CopyRect(ARect, WalkeCykleBitmap-&gt;Canvas, BRect);

   EinPfad = Pfad + &quot;\\&quot; + &quot;neu.bmp&quot;;
   AktuellesBitmap-&gt;SaveToFile(EinPfad);
</code></pre>
<p>bei google habe ich das gefunden</p>
<pre><code class="language-cpp">if (x + 10 &lt;= 724)
{
x +=10;
TRect Ziel = Rect(0, 0, 300, 300);
TRect Ausgang = Rect(x, y, x + 300, y + 300);
Canvas-&gt;CopyRect(Ziel, Bitmap-&gt;Canvas, Ausgang);
}
</code></pre>
<p><a href="http://entwickler-forum.de/archive/index.php/t-4003.html" rel="nofollow">http://entwickler-forum.de/archive/index.php/t-4003.html</a></p>
<p>wo kopiert er das bild hin?</p>
<p>wäre für eure hilfe wirklich dankbar</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372952</guid><dc:creator><![CDATA[FJK]]></dc:creator><pubDate>Wed, 26 Sep 2007 10:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 10:38:27 GMT]]></title><description><![CDATA[<p>Ist dein AktuellesBitmap überhaupt groß genug um alles aufzunehmen was du da reinkopieren willst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372957</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 26 Sep 2007 10:38:27 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 11:07:53 GMT]]></title><description><![CDATA[<p>hmm?</p>
<p>global:<br />
Graphics::TBitmap *AktuellesBitmap = new Graphics::TBitmap();<br />
Graphics::TBitmap *WalkeCykleBitmap = new Graphics::TBitmap();</p>
<p>mehr habe ich zur ini nicht gemacht</p>
<p>ich dachte er nimmt sich den platz den er braucht?</p>
<p>danke</p>
<p>flo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372982</guid><dc:creator><![CDATA[FJK]]></dc:creator><pubDate>Wed, 26 Sep 2007 11:07:53 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 11:31:55 GMT]]></title><description><![CDATA[<p>Besorg Dir mal die deutsche Version des BCB. Ohne Hilfe wirst Du mit dem BCB nicht viel anfangen können.</p>
<p>Und nein, die Größe mußt Du selbstverständlich selbst festlegen, ebenso das Farbformat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373017</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 26 Sep 2007 11:31:55 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 11:33:51 GMT]]></title><description><![CDATA[<p>hast du ne ahnung was bcb kostet <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>flo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373023</guid><dc:creator><![CDATA[FJK]]></dc:creator><pubDate>Wed, 26 Sep 2007 11:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 11:37:54 GMT]]></title><description><![CDATA[<p>Ja hab ich, ich hab einen gekauft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373025</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 26 Sep 2007 11:37:54 GMT</pubDate></item><item><title><![CDATA[Reply to teil eines TBitmap in ein anderes TBitmap kopieren on Wed, 26 Sep 2007 11:43:38 GMT]]></title><description><![CDATA[<p>ah super es fkt<br />
danke nochmals</p>
<p>also falls es jemanden interessier</p>
<p>AktuellesBitmap-&gt;Height = EinBilderGroesse; // gibt die hoehe vom bitmap an<br />
AktuellesBitmap-&gt;Width = EinBilderGroesse; // gibt die breite vom bitmap an</p>
<p>AktuellesBitmap-&gt;Canvas-&gt;CopyRect(ARect, WalkeCykleBitmap-&gt;Canvas, BRect); //kopiert das teil des bildes</p>
<p>danke</p>
<p>gibt es eine schüler version vom bcb<br />
hab nur eine engl ebay version</p>
<p>flo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1373031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1373031</guid><dc:creator><![CDATA[FJK]]></dc:creator><pubDate>Wed, 26 Sep 2007 11:43:38 GMT</pubDate></item></channel></rss>