<?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[schneller Pixelzugriff auf HBitmap-Objekt mit Windows-Api-Funktionen]]></title><description><![CDATA[<p>Wie kann ich am schnellsten (Lesezugriff reicht) auf die Pixel von einem HBitmap-Objekt zugreifen, welches ich zuvor mit StretchBlt gefüllt habe?</p>
<p>Welche Methoden muss ich vor oder nach StretchBlt aufrufen?</p>
<p>Gibt es denn da nicht irgendetwas aus der Windows-Api?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195079/schneller-pixelzugriff-auf-hbitmap-objekt-mit-windows-api-funktionen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 03:28:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195079.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Oct 2007 18:22:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to schneller Pixelzugriff auf HBitmap-Objekt mit Windows-Api-Funktionen on Sat, 13 Oct 2007 18:22:08 GMT]]></title><description><![CDATA[<p>Wie kann ich am schnellsten (Lesezugriff reicht) auf die Pixel von einem HBitmap-Objekt zugreifen, welches ich zuvor mit StretchBlt gefüllt habe?</p>
<p>Welche Methoden muss ich vor oder nach StretchBlt aufrufen?</p>
<p>Gibt es denn da nicht irgendetwas aus der Windows-Api?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384575</guid><dc:creator><![CDATA[Anfaenger2003]]></dc:creator><pubDate>Sat, 13 Oct 2007 18:22:08 GMT</pubDate></item><item><title><![CDATA[Reply to schneller Pixelzugriff auf HBitmap-Objekt mit Windows-Api-Funktionen on Sun, 14 Oct 2007 10:06:20 GMT]]></title><description><![CDATA[<p>Anfaenger2003 schrieb:</p>
<blockquote>
<p>Wie kann ich am schnellsten (Lesezugriff reicht) auf die Pixel von einem HBitmap-Objekt zugreifen, welches ich zuvor mit StretchBlt gefüllt habe?</p>
</blockquote>
<p>Schneller dürfte es nicht gehen:</p>
<pre><code class="language-cpp">BITMAP bm; 
HBITMAP hBitmapDest; 
FARPROC pfnGetObject; 
int x, y; 
LONG *pDest; 

pfnGetObject (hBitmapDest, sizeof (BITMAP), &amp;bm); 
pDest = (LONG *) bm.bmBits; 

y = bm.bmHeight * bm.bmWidth; 

// Zugriff 

for (x = 0; x &lt; y; x++) { 
    *(pDest++) = ... // &lt;- irgendwas 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1384770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384770</guid><dc:creator><![CDATA[schmidt-webdesign.net]]></dc:creator><pubDate>Sun, 14 Oct 2007 10:06:20 GMT</pubDate></item><item><title><![CDATA[Reply to schneller Pixelzugriff auf HBitmap-Objekt mit Windows-Api-Funktionen on Sun, 14 Oct 2007 10:35:30 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">::HBITMAP hBitmap(::LoadImage(...));
if (hBitmap == NULL) return false;

::BITMAP bmp;
::GetObject(hBitmap, sizeof(bmp), &amp;bmp);
LONG* pBitmapData(static_cast&lt;LONG*&gt;(bmp.bmBits));

LONG lPixelCount(bm.bmHeight * bm.bmWidth);

for (LONG px = 0; px &lt; lPixelCount; ++px)
    *(pBitmapData++) = RGB(10, 20, 30);
</code></pre>
<p><a href="http://schmidt-webdesign.net" rel="nofollow">schmidt-webdesign.net</a>'s Code mal umgeschrieben ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384778</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384778</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 14 Oct 2007 10:35:30 GMT</pubDate></item><item><title><![CDATA[Reply to schneller Pixelzugriff auf HBitmap-Objekt mit Windows-Api-Funktionen on Sun, 14 Oct 2007 12:13:33 GMT]]></title><description><![CDATA[<p>Hey super!!!</p>
<p>Das hat mir wirklich weiter geholfen, DANKE <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> mach weiter so</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384835</guid><dc:creator><![CDATA[Anfaenger2003]]></dc:creator><pubDate>Sun, 14 Oct 2007 12:13:33 GMT</pubDate></item></channel></rss>