<?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 stauchen&#x2F;dehnen]]></title><description><![CDATA[<p>Hallo Ich habe ein CBitmap-Objekt mit entsprechender Breite und Höhe. Wie kann ich die Bitmap um einen bestimmten Prozentsatz stauchen, bzw. dehnen?</p>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/84877/bitmap-stauchen-dehnen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 09:08:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/84877.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Sep 2004 08:21:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmap stauchen&#x2F;dehnen on Fri, 03 Sep 2004 08:21:42 GMT]]></title><description><![CDATA[<p>Hallo Ich habe ein CBitmap-Objekt mit entsprechender Breite und Höhe. Wie kann ich die Bitmap um einen bestimmten Prozentsatz stauchen, bzw. dehnen?</p>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/598514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/598514</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Fri, 03 Sep 2004 08:21:42 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap stauchen&#x2F;dehnen on Fri, 03 Sep 2004 09:11:22 GMT]]></title><description><![CDATA[<p>schau Dir mal CDC::StretchBlt an:</p>
<pre><code>CClientDc aDC(this);
BITMAP bm;
aBitmap-&gt;GetBitmap( &amp;bm );//aBitmap sei mal ein CBitamp*
CDC ImgMemDC;// Gerätekontext erzeugen, in den Bitmap geladen wird
ImgMemDC.CreateCompatibleDC( &amp;aDC );
CGdiObject* pOldObject = ImgMemDC.SelectObject( aBitmap );	
aDC.SetStretchBltMode( COLORONCOLOR );
aDC.StretchBlt( m_rDestRect.left, m_rDestRect.top, m_rDestRect.right - m_rDestRect.left, m_rDestRect.bottom - m_rDestRect.top, &amp;ImgMemDC, m_rSourceRect.left, m_rSourceRect.top, m_rSourceRect.right - m_rSourceRect.left, m_rSourceRect.bottom - m_rSourceRect.top, SRCCOPY );
ImgMemDC.SelectObject( pOldObject );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/598560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/598560</guid><dc:creator><![CDATA[TheBigW]]></dc:creator><pubDate>Fri, 03 Sep 2004 09:11:22 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap stauchen&#x2F;dehnen on Fri, 03 Sep 2004 09:13:29 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>da nimst du dir den dreisats und rechndest dir das prozentual aus.(in Pixtel)<br />
dan mit StretchBlt() ferendern.</p>
<pre><code class="language-cpp">CBitmap bmp; 
    CBitmap bild; 
    bmp.LoadBitmap(IDB_BITMAP1); 

    CDC SpeicherDC; 
    SpeicherDC.CreateCompatibleDC(dcPrint); 
    SpeicherDC.SelectObject( &amp;bmp ); 

    dcPrint-&gt;StretchBlt( 0, 0, 640, 200, &amp;SpeicherDC, 0, 0, 100, 100, SRCCOPY );
</code></pre>
<p>MFG TaccoGo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/598562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/598562</guid><dc:creator><![CDATA[TaccoGo]]></dc:creator><pubDate>Fri, 03 Sep 2004 09:13:29 GMT</pubDate></item></channel></rss>