<?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[auf BMP in Picture Control zugreifen]]></title><description><![CDATA[<p>Hi,</p>
<p>ich möchte auf die Pixel eines BMPs zugreifen, dass als Picture Control in einen Dialog eingebunden ist. Wie komme ich da dran? Die müssen ja nun irgendwo im Speicher stehen.</p>
<p>Dank für jeden Hinweis.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/150785/auf-bmp-in-picture-control-zugreifen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 20:59:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150785.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Jun 2006 09:34:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Tue, 20 Jun 2006 09:34:01 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich möchte auf die Pixel eines BMPs zugreifen, dass als Picture Control in einen Dialog eingebunden ist. Wie komme ich da dran? Die müssen ja nun irgendwo im Speicher stehen.</p>
<p>Dank für jeden Hinweis.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081217</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Tue, 20 Jun 2006 09:34:01 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Tue, 20 Jun 2006 14:26:36 GMT]]></title><description><![CDATA[<p>Tjo... was hälst de davon dir nen Bitmap Handle mit <a href="http://msdn2.microsoft.com/en-us/library/zc85ezf2(VS.80).aspx" rel="nofollow">CStatic::GetBitmap</a> zu holen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081496</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081496</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Tue, 20 Jun 2006 14:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Tue, 20 Jun 2006 18:12:17 GMT]]></title><description><![CDATA[<p>Danke, nachdem ich dann nach HBITMAP gegoogelt habe, habe ich - glaube ich - den richtigen Weg gefunden. Werde es morgen direkt mal ausprobieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081596</guid><dc:creator><![CDATA[jencas2]]></dc:creator><pubDate>Tue, 20 Jun 2006 18:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Mon, 24 Jul 2006 13:43:26 GMT]]></title><description><![CDATA[<p>Bin leider keinen Schritt weiter gekommen. Wie komme ich mit dem HBITMAP an die Pixeldaten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103184</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Mon, 24 Jul 2006 13:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Tue, 25 Jul 2006 13:07:57 GMT]]></title><description><![CDATA[<p>Versuch mal die Funktion GetBitmapBits. Hier ein Beispiel aus meiner Anwendung:</p>
<pre><code class="language-cpp">HBITMAP hBitmap;

        /*...*/

	m_lSize = m_lHeight * m_lWidth;				
	m_pMemory1 = (BYTE*)malloc(m_lSize);

        /*...*/

        GetBitmapBits(hBitmap,m_lSize,m_pMemory1);
</code></pre>
<p>Ich hoffe die Codeschnippsel helfen dir weiter.</p>
<p>Gruß charlie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103845</guid><dc:creator><![CDATA[charlie-ux]]></dc:creator><pubDate>Tue, 25 Jul 2006 13:07:57 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Tue, 25 Jul 2006 13:27:15 GMT]]></title><description><![CDATA[<p>Stichwort: CImage, CImage::Attach, CImage::SetPixel, CImage::GetPixel, usw.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103862</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Tue, 25 Jul 2006 13:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Thu, 27 Jul 2006 06:51:48 GMT]]></title><description><![CDATA[<p>Dravere schrieb:</p>
<blockquote>
<p>Stichwort: CImage, CImage::Attach, CImage::SetPixel, CImage::GetPixel, usw.</p>
<p>Grüssli</p>
</blockquote>
<p>CImage finde ich in der MFC nicht. Meinst Du damit die Klasse von <a href="http://codeproject.com" rel="nofollow">codeproject.com</a>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105049</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Thu, 27 Jul 2006 06:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Thu, 27 Jul 2006 09:09:10 GMT]]></title><description><![CDATA[<p>Nö, ist eine ATL Klasse.<br />
Solltest eigentlich in der MSDN finden.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105144</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 27 Jul 2006 09:09:10 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Thu, 27 Jul 2006 09:40:24 GMT]]></title><description><![CDATA[<p>Aus historischen Gründen bin ich noch auf VC6 angewiesen. Dort scheint es CImage (noch) nicht zu geben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105181</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105181</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Thu, 27 Jul 2006 09:40:24 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Thu, 27 Jul 2006 09:44:11 GMT]]></title><description><![CDATA[<p>charlie-ux schrieb:</p>
<blockquote>
<p>Versuch mal die Funktion GetBitmapBits. Hier ein Beispiel aus meiner Anwendung:</p>
<pre><code class="language-cpp">HBITMAP hBitmap;

        /*...*/

	m_lSize = m_lHeight * m_lWidth;				
	m_pMemory1 = (BYTE*)malloc(m_lSize);

        /*...*/

        GetBitmapBits(hBitmap,m_lSize,m_pMemory1);
</code></pre>
<p>Ich hoffe die Codeschnippsel helfen dir weiter.</p>
<p>Gruß charlie</p>
</blockquote>
<p>Wie komme ich denn dann an die Informationen, wieviele Bits ein Pixel hat, ob es per Palette geht oder nicht, also an die Headerinformationen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105185</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Thu, 27 Jul 2006 09:44:11 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Tue, 01 Aug 2006 13:53:17 GMT]]></title><description><![CDATA[<p>Keiner ne Ahnung?????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1108556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1108556</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Tue, 01 Aug 2006 13:53:17 GMT</pubDate></item><item><title><![CDATA[Reply to auf BMP in Picture Control zugreifen on Tue, 01 Aug 2006 14:53:32 GMT]]></title><description><![CDATA[<p>Nicht wirklich, vor allem ohne CImage. Eine Möglichkeit gebe es vielleicht über einen CDC zu gehen. Ist aber ziemlich kompliziert find ich.</p>
<pre><code class="language-cpp">HBITMAP hBitmap; // Das HBITMAP, welches du vom PictureCtrl bekommst
CBitmap* pBitmap = CBitmap::FromHandle(hBitmap);

// Dann musst du dir irgendwie einen CDC, CClientDC oder CPaintDC erstellen.
// Frag mich aber nicht genau wie, so dass du nicht in das Fenster reinzeichnest.

CDC dc; // Das ist nun dein erstellter CDC oder was auch immer.
CBitmap* pOldBitmap = dc.SelectObject(pBitmap);

// Und nun solltest glaub ich mit GetPixel, bzw. SetPixel die RGB Farben holen, bzw. setzen können.

// Aufräumen ...
dc.SelectObject(pOldBitmap);

// ... und löschen nicht vergessen.
pBitmap-&gt;DeleteObject();
</code></pre>
<p>Alle Angaben ohne Gewähr. So habe ich dies noch nie versucht.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1108627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1108627</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Tue, 01 Aug 2006 14:53:32 GMT</pubDate></item></channel></rss>