<?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[Wie schreibe ich einen Text auf ein Bild ohne den Texthintergrund?]]></title><description><![CDATA[<p>Hallo,</p>
<p>Wie kann ich einen Text (z.B. mit Canvas-&gt;TextOutA(&quot;Mustertext&quot;);) auf ein Bild schreiben/zeichnen so dass nur die Buchstaben selbst sichtbar sind und nicht der Hintergrund mit sichtbar ist.</p>
<p>Ich habe es mit CopyRect, Brushcopy getestet. Zeichne mit TextOut den Text in ein Pufferbild und kopiere das gesamte Bild auf den Hauptcanvas. Es wird leider immer das ganze gepufferte Bild auf den Hauptcanvas gemalt.</p>
<pre><code class="language-cpp">Lyricpuffer-&gt;Width = Width;Lyricpuffer-&gt;Height = Height;

Lyricpuffer-&gt;Canvas-&gt;Font-&gt;Size = 25;
Lyricpuffer-&gt;Canvas-&gt;Font-&gt;Color = clRed;
Lyricpuffer-&gt;Canvas-&gt;TextOutA(5,5, &quot;Hallo&quot;);

TRect Zielbild;
Zielbild.left = 0; Zielbild.top = 0;
Zielbild.right = Width;
Zielbild.Bottom = Height;

//Canvas-&gt;CopyRect(Zielbild,Lyricpuffer-&gt;Canvas ,Zielbild);

Canvas-&gt;BrushCopy(Zielbild,Lyricpuffer,Zielbild, clWhite);
</code></pre>
<p>wo liegt der Wurm?</p>
<p>Danke</p>
<p>Grüsse<br />
Waldseeduo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/102678/wie-schreibe-ich-einen-text-auf-ein-bild-ohne-den-texthintergrund</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 18:29:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/102678.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Feb 2005 16:36:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie schreibe ich einen Text auf ein Bild ohne den Texthintergrund? on Mon, 28 Feb 2005 16:36:10 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Wie kann ich einen Text (z.B. mit Canvas-&gt;TextOutA(&quot;Mustertext&quot;);) auf ein Bild schreiben/zeichnen so dass nur die Buchstaben selbst sichtbar sind und nicht der Hintergrund mit sichtbar ist.</p>
<p>Ich habe es mit CopyRect, Brushcopy getestet. Zeichne mit TextOut den Text in ein Pufferbild und kopiere das gesamte Bild auf den Hauptcanvas. Es wird leider immer das ganze gepufferte Bild auf den Hauptcanvas gemalt.</p>
<pre><code class="language-cpp">Lyricpuffer-&gt;Width = Width;Lyricpuffer-&gt;Height = Height;

Lyricpuffer-&gt;Canvas-&gt;Font-&gt;Size = 25;
Lyricpuffer-&gt;Canvas-&gt;Font-&gt;Color = clRed;
Lyricpuffer-&gt;Canvas-&gt;TextOutA(5,5, &quot;Hallo&quot;);

TRect Zielbild;
Zielbild.left = 0; Zielbild.top = 0;
Zielbild.right = Width;
Zielbild.Bottom = Height;

//Canvas-&gt;CopyRect(Zielbild,Lyricpuffer-&gt;Canvas ,Zielbild);

Canvas-&gt;BrushCopy(Zielbild,Lyricpuffer,Zielbild, clWhite);
</code></pre>
<p>wo liegt der Wurm?</p>
<p>Danke</p>
<p>Grüsse<br />
Waldseeduo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734492</guid><dc:creator><![CDATA[Waldseeduo]]></dc:creator><pubDate>Mon, 28 Feb 2005 16:36:10 GMT</pubDate></item><item><title><![CDATA[Reply to Wie schreibe ich einen Text auf ein Bild ohne den Texthintergrund? on Mon, 28 Feb 2005 16:51:56 GMT]]></title><description><![CDATA[<p>SetBkMode(Canvas-&gt;Handle, TRANSPARENT); <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/734516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734516</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Mon, 28 Feb 2005 16:51:56 GMT</pubDate></item><item><title><![CDATA[Reply to Wie schreibe ich einen Text auf ein Bild ohne den Texthintergrund? on Mon, 28 Feb 2005 17:08:15 GMT]]></title><description><![CDATA[<p>hallo,<br />
danke es geht aber nicht oder denke ich über die Ecke?</p>
<pre><code class="language-cpp">Lyricpuffer-&gt;Width = Width;Lyricpuffer-&gt;Height = Height;

Lyricpuffer-&gt;Canvas-&gt;Font-&gt;Size = 25;
Lyricpuffer-&gt;Canvas-&gt;Font-&gt;Color = clRed;
Lyricpuffer-&gt;Canvas-&gt;TextOutA(5,5, &quot;Hallo&quot;);

TRect Zielbild;
Zielbild.left = 0; Zielbild.top = 0;
Zielbild.right = Width;
Zielbild.Bottom = Height;

//Canvas-&gt;CopyRect(Zielbild,Lyricpuffer-&gt;Canvas ,Zielbild);

SetBkMode(Canvas-&gt;Handle, TRANSPARENT);
Canvas-&gt;BrushCopy(Zielbild,Lyricpuffer,Zielbild, clWhite);
</code></pre>
<p>kannst du mir noch nen tip geben wo der wurm ist?</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734540</guid><dc:creator><![CDATA[Waldseeduo]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:08:15 GMT</pubDate></item><item><title><![CDATA[Reply to Wie schreibe ich einen Text auf ein Bild ohne den Texthintergrund? on Mon, 28 Feb 2005 17:08:49 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>oder</p>
<pre><code class="language-cpp">Canvas-&gt;Brush-&gt;Style = bsClear;
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734547</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:08:49 GMT</pubDate></item><item><title><![CDATA[Reply to Wie schreibe ich einen Text auf ein Bild ohne den Texthintergrund? on Mon, 28 Feb 2005 17:15:41 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7971">@akari</a><br />
ich komm selbst mit deinem beitrag nicht klar es will nicht gehen.</p>
<p>seit 11Uhr sitz ich schon dran und wühl die Borlandhilfe oder das Netz nach einen Beispiel durch. Es zeichnet mir immer das ganze Bild weis aus.</p>
<p>gruss<br />
Waldseeduo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734551</guid><dc:creator><![CDATA[Waldseeduo]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:15:41 GMT</pubDate></item><item><title><![CDATA[Reply to Wie schreibe ich einen Text auf ein Bild ohne den Texthintergrund? on Mon, 28 Feb 2005 17:20:33 GMT]]></title><description><![CDATA[<p>hallo,<br />
vielen dank es hat geklappt. war wohl zu stark auf der leitung gesessen.</p>
<p>gruss<br />
waldseeduo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734556</guid><dc:creator><![CDATA[Waldseeduo]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:20:33 GMT</pubDate></item></channel></rss>