<?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[Bitmap Zoomen]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>habe mir ein Bitmap erstellt und lade dies in eine PaintBox!<br />
Was für eine Idee steckt dahinter, wenn ich quai in das Bitmap reinzoomen möchte?</p>
<p>Danke Bench</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206224/bitmap-zoomen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 23:49:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206224.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Feb 2008 11:37:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 11:37:03 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>habe mir ein Bitmap erstellt und lade dies in eine PaintBox!<br />
Was für eine Idee steckt dahinter, wenn ich quai in das Bitmap reinzoomen möchte?</p>
<p>Danke Bench</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460854</guid><dc:creator><![CDATA[Bench_XProjects]]></dc:creator><pubDate>Fri, 22 Feb 2008 11:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 11:39:17 GMT]]></title><description><![CDATA[<blockquote>
<p>Was für eine Idee steckt dahinter, wenn ich quai in das Bitmap reinzoomen möchte?</p>
</blockquote>
<p>Das das Bild größer wird ? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460859</guid><dc:creator><![CDATA[mark_s]]></dc:creator><pubDate>Fri, 22 Feb 2008 11:39:17 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 12:19:04 GMT]]></title><description><![CDATA[<p>Das man einen Ausschnitt des Bildes auf der gesamten Bitmapfläche zeichnet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460897</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 22 Feb 2008 12:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 12:50:02 GMT]]></title><description><![CDATA[<p>ICh habe es so gelöst:</p>
<pre><code class="language-cpp">Window-&gt;OnMouseWheelUp=ZoomIn;
			Window-&gt;OnMouseWheelDown=ZoomOut;
</code></pre>
<p>&quot;Window&quot; ist ein TForm das ein TImage enthält (Sind beide immer gleichgroß)<br />
und die Funktionen die Aufgerufen werden...</p>
<pre><code class="language-cpp">void __fastcall ZoomOut(TObject *Sender,
                                       TShiftState Shift,
                                       const TPoint &amp;MousePos,
									   bool &amp;Handled)
		{
		int width 	= ActivePic-&gt;Window-&gt;Width;
		int height 	= ActivePic-&gt;Window-&gt;Height;

		if (width &gt; 50 &amp;&amp; height &gt; 50)
		{
			width = width *0.75;
			height= height*0.75;

			ActivePic-&gt;Window-&gt;Width=width;
			ActivePic-&gt;Window-&gt;Height=height;

			ActivePic-&gt;Image-&gt;Width=width;
			ActivePic-&gt;Image-&gt;Height=height;

			ActivePic-&gt;Window-&gt;Top=10;
			ActivePic-&gt;Window-&gt;Left=100;
			v--;
			ActivePic-&gt;Window-&gt;Caption=ActivePic-&gt;FileName + &quot; &quot;+IntToStr(v*25+100)+&quot;%&quot;;
			ActivePic-&gt;Window-&gt;Top=10;
			ActivePic-&gt;Window-&gt;Left=100;
		}

		}
</code></pre>
<p>Die entscheidenden Zeilen für dich dürften sein:</p>
<pre><code class="language-cpp">ActivePic-&gt;Image-&gt;Width=width;
			ActivePic-&gt;Image-&gt;Height=height;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1460925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460925</guid><dc:creator><![CDATA[christianzz]]></dc:creator><pubDate>Fri, 22 Feb 2008 12:50:02 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 15:28:20 GMT]]></title><description><![CDATA[<p>Braunstein schrieb:</p>
<blockquote>
<p>Das man einen Ausschnitt des Bildes auf der gesamten Bitmapfläche zeichnet?</p>
</blockquote>
<p>Wenn das beim zoomen passiert, würde ich sagen, das das Programm einen Fehler hat.<br />
Freies skalieren eines gesammten Bildes oder eines Bildausschnittes würde ich als Zoom bezeichnen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461043</guid><dc:creator><![CDATA[hmmmm]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:28:20 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 15:32:27 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Und wie glaubst du wird das &quot;freie Skalieren&quot; technisch umgesetzt? Nämlich genau wie Braunstein schon sagt am einfachsten durch Canvas::StretchDraw, bestenfalls ersetzt durch einen effizienteren Algorithmus.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461046</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461046</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 15:36:48 GMT]]></title><description><![CDATA[<p>StretchDraw ist wie du schon etwas anklingen lassen hast &quot;absolut unbrauchbar&quot;.<br />
Für sowas würde ich effizientere Methoden mit Interpolation der GDI+ benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461051</guid><dc:creator><![CDATA[hmmmm]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap Zoomen on Fri, 22 Feb 2008 15:40:12 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das absolut halte ich für maßlos übertrieben...</p>
<p>Aber darum geht es auch nicht. Egal wie du den Auschnitt in den gezoomt wird vergrößerst, du arbeitest auf einem Auschnitt des Original-Bitmaps der auf den gesamten Bereich des TImages ausgedehnt wird. Und genau das meint Braunstein.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461053</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:40:12 GMT</pubDate></item></channel></rss>