<?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[aus COLORREF Farbe extrahieren]]></title><description><![CDATA[<pre><code>farbe = GetPixel(GetDC(handle), 20, 20);
 BYTE g=GetGValue(farbe);
 BYTE r=GetRValue(farbe);
 BYTE b=GetBValue(farbe);
 cout&lt;&lt;(int)g&lt;&lt;endl;
 cout&lt;&lt;(int)r&lt;&lt;endl;
 cout&lt;&lt;(int)b&lt;&lt;endl;
</code></pre>
<p>Jedesmal wird 255 255 255 ausgegeben. Egal welche Farbe der Device Context hat. Was mache ichf alsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/130417/aus-colorref-farbe-extrahieren</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 15:53:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/130417.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Dec 2005 18:54:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to aus COLORREF Farbe extrahieren on Thu, 22 Dec 2005 18:54:29 GMT]]></title><description><![CDATA[<pre><code>farbe = GetPixel(GetDC(handle), 20, 20);
 BYTE g=GetGValue(farbe);
 BYTE r=GetRValue(farbe);
 BYTE b=GetBValue(farbe);
 cout&lt;&lt;(int)g&lt;&lt;endl;
 cout&lt;&lt;(int)r&lt;&lt;endl;
 cout&lt;&lt;(int)b&lt;&lt;endl;
</code></pre>
<p>Jedesmal wird 255 255 255 ausgegeben. Egal welche Farbe der Device Context hat. Was mache ichf alsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/948053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/948053</guid><dc:creator><![CDATA[etzoklop]]></dc:creator><pubDate>Thu, 22 Dec 2005 18:54:29 GMT</pubDate></item><item><title><![CDATA[Reply to aus COLORREF Farbe extrahieren on Sun, 25 Dec 2005 08:22:17 GMT]]></title><description><![CDATA[<p>Ist dein Handle gültig? Und hast du mal mit dem Debugger geschaut, was in den Variablen drinsteht? Ich bin mir nicht sicher, aber kann man mit cout direkt einen int ausgeben?! Ich denke, dass du das erst mit (w)sprintf in einen String wandeln musst - hab aber schon lang nichts mehr damit gemacht <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/949423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/949423</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 25 Dec 2005 08:22:17 GMT</pubDate></item></channel></rss>