<?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[Abfrage ob sich bilder überschneiden]]></title><description><![CDATA[<p>Erst mal vorne weg: Ich hab in der FAQ gesucht...</p>
<p>ich versuche eine abfrage zu erstellen , ob sich zwei eingefügte bilder überschneiden.<br />
Hat jemand von euch eine Idee wie man soetwas realisiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/135685/abfrage-ob-sich-bilder-überschneiden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 13:55:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/135685.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Feb 2006 08:58:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 08:58:11 GMT]]></title><description><![CDATA[<p>Erst mal vorne weg: Ich hab in der FAQ gesucht...</p>
<p>ich versuche eine abfrage zu erstellen , ob sich zwei eingefügte bilder überschneiden.<br />
Hat jemand von euch eine Idee wie man soetwas realisiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985453</guid><dc:creator><![CDATA[Smiling_Viking]]></dc:creator><pubDate>Sat, 04 Feb 2006 08:58:11 GMT</pubDate></item><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 10:09:36 GMT]]></title><description><![CDATA[<p>Wo sind die Bilder wie eingefügt?</p>
<p>PS.<br />
Sieh dir mal <em>IntersectRect</em> an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985466</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sat, 04 Feb 2006 10:09:36 GMT</pubDate></item><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 10:08:44 GMT]]></title><description><![CDATA[<p>Ich bin grad dabei ein Frogger spiel zu proggen und brauch nun eine möglichkeit abzufragen , ob der &quot;Frosch&quot; unter ein Auto geraten ist...<br />
die bilder sind so eingefügt</p>
<pre><code class="language-cpp">//Frosch:
TGIFImage *gif = new TGIFImage();
gif-&gt;LoadFromFile(&quot;smiley1.gif&quot;);
ImageFig-&gt;Picture-&gt;Assign(gif);
ImageFig-&gt;Width=23;
ImageFig-&gt;Height=23;
ImageFig-&gt;Top=295;
ImageFig-&gt;Left=150;
//Auto:
AutoL4-&gt;Picture-&gt;LoadFromFile(AutoL[z]);
AutoL4-&gt;Width = 19;
AutoL4-&gt;Height = 11;
AutoL4-&gt;Top=275;
AutoL4-&gt;Left=0;
</code></pre>
<p>nun muss ich ja irgendwie vergleichen ob die Punkte sich überschneiden<br />
da hatte ich diese idee (die mir aber zu groß geraten ist ...)</p>
<pre><code class="language-cpp">if((ImageFig-&gt;Top &gt; AutoL1-&gt;Top &amp;&amp; ImageFig-&gt;Top &lt; AutoL1-&gt;Top+11
   &amp;&amp; ImageFig-&gt;Left &gt; AutoL1-&gt;Left &amp;&amp; ImageFig-&gt;Left &lt; AutoL1-&gt;Left+19)
   || (ImageFig-&gt;Top+23 &gt;AutoL1-&gt;Top &amp;&amp; ImageFig-&gt;Top+23 &lt; AutoL1-&gt;Top+11
   &amp;&amp; ImageFig-&gt;Left+23 &gt; AutoL1-&gt;Left &amp;&amp; ImageFig-&gt;Left+23 &lt; AutoL1-&gt;Left+19)
   ||(ImageFig-&gt;Top &gt; AutoL1-&gt;Top &amp;&amp; ImageFig-&gt;Top &lt; AutoL1-&gt;Top+11
   &amp;&amp; ImageFig-&gt;Left+23 &gt; AutoL1-&gt;Left &amp;&amp; ImageFig-&gt;Left+23 &lt; AutoL1-&gt;Left+19)
   ||(ImageFig-&gt;Top+23 &gt; AutoL1-&gt;Top &amp;&amp; ImageFig-&gt;Top+23 &lt; AutoL1-&gt;Top+11
   &amp;&amp; ImageFig-&gt;Left &gt; AutoL1-&gt;Left &amp;&amp; ImageFig-&gt;Left &lt; AutoL1-&gt;Left+19)
   ||(ImageFig-&gt;Left &lt; AutoL1-&gt;Left &amp;&amp; ImageFig-&gt;Left+23 &gt; AutoL1-&gt;Left+19
   &amp;&amp; ImageFig-&gt;Top &lt; AutoL1-&gt;Top &amp;&amp; ImageFig-&gt;Top+23 &gt; AutoL1-&gt;Top+11 ))
{
  ImageFig-&gt;Top=295;
  ImageFig-&gt;Left=150;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/985480</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985480</guid><dc:creator><![CDATA[Smiling_Viking]]></dc:creator><pubDate>Sat, 04 Feb 2006 10:08:44 GMT</pubDate></item><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 10:11:18 GMT]]></title><description><![CDATA[<p>Wie oben grad nachgetragen: sieh dir IntersectRect an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985482</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sat, 04 Feb 2006 10:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 10:20:55 GMT]]></title><description><![CDATA[<p>IntersectRect gibts aber nur im builder 6 ich arbeite mit der 5 - gibts denn da nichts ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985492</guid><dc:creator><![CDATA[Smiling_Viking]]></dc:creator><pubDate>Sat, 04 Feb 2006 10:20:55 GMT</pubDate></item><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 10:29:52 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Doch, die passende WinAPI-Funktion <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/rectangl_1mpg.asp" rel="nofollow">IntersectRect</a>.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985500</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985500</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 04 Feb 2006 10:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 11:12:52 GMT]]></title><description><![CDATA[<p><a href="http://www.marquardtnet.info/cecke/quickies.1/1_quicky_41.html" rel="nofollow">http://www.marquardtnet.info/cecke/quickies.1/1_quicky_41.html</a></p>
<p>Etwas für Rechtecke....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985531</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Sat, 04 Feb 2006 11:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to Abfrage ob sich bilder überschneiden on Sat, 04 Feb 2006 14:02:33 GMT]]></title><description><![CDATA[<p>Danke,<br />
Wenn ich euch nicht hätte ... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/985669</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985669</guid><dc:creator><![CDATA[Smiling_Viking]]></dc:creator><pubDate>Sat, 04 Feb 2006 14:02:33 GMT</pubDate></item></channel></rss>