<?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[GetWindowDC -&amp;gt; in eine Bitmap packen]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich das DC spich das Fenster in eine Bitmap schreiben um es dann pJPG_Bild-&gt;Assign zu übergeben !?</p>
<pre><code class="language-cpp">HDC dc = GetWindowDC(GetDesktopWindow());
   TJPEGImage *pJPG_Bild = new TJPEGImage();
   Graphics::TBitmap *Bitmap = new Graphics::TBitmap();

   pJPG_Bild-&gt;Assign(/*hier soll dann das bitmap rein*/);
   pJPG_Bild-&gt;CompressionQuality = 50;
   pJPG_Bild-&gt;SaveToFile(&quot;test.jpg&quot;);

   delete pJPG_Bild;
</code></pre>
<p>gruß</p>
<p>user!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/143025/getwindowdc-gt-in-eine-bitmap-packen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 23:44:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/143025.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Apr 2006 07:08:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetWindowDC -&amp;gt; in eine Bitmap packen on Wed, 05 Apr 2006 07:08:21 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich das DC spich das Fenster in eine Bitmap schreiben um es dann pJPG_Bild-&gt;Assign zu übergeben !?</p>
<pre><code class="language-cpp">HDC dc = GetWindowDC(GetDesktopWindow());
   TJPEGImage *pJPG_Bild = new TJPEGImage();
   Graphics::TBitmap *Bitmap = new Graphics::TBitmap();

   pJPG_Bild-&gt;Assign(/*hier soll dann das bitmap rein*/);
   pJPG_Bild-&gt;CompressionQuality = 50;
   pJPG_Bild-&gt;SaveToFile(&quot;test.jpg&quot;);

   delete pJPG_Bild;
</code></pre>
<p>gruß</p>
<p>user!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030729</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030729</guid><dc:creator><![CDATA[Username]]></dc:creator><pubDate>Wed, 05 Apr 2006 07:08:21 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowDC -&amp;gt; in eine Bitmap packen on Wed, 05 Apr 2006 08:03:21 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Schau doch mal in die FAQ zum Thema Screenshot. Das sollte helfen. evtl dann noch zum Thema Grafik/JPEG und GIF</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030770</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 05 Apr 2006 08:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowDC -&amp;gt; in eine Bitmap packen on Wed, 05 Apr 2006 10:17:11 GMT]]></title><description><![CDATA[<p>Braunstein schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>Schau doch mal in die FAQ zum Thema Screenshot. Das sollte helfen. evtl dann noch zum Thema Grafik/JPEG und GIF</p>
</blockquote>
<p>In den Beispilen der FAQ ist es leider alles über das TImage gelöst. Dieses möchte ich aber nicht nutzen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030880</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030880</guid><dc:creator><![CDATA[Username]]></dc:creator><pubDate>Wed, 05 Apr 2006 10:17:11 GMT</pubDate></item><item><title><![CDATA[Reply to GetWindowDC -&amp;gt; in eine Bitmap packen on Wed, 05 Apr 2006 10:19:38 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>dann nimm statt einen TImage eben ein selbst erstelltes TBitmap. Die Funktionen sind dann äquivalent.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030885</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 05 Apr 2006 10:19:38 GMT</pubDate></item></channel></rss>