<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RGB conversion in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/RGB-conversion/m-p/932970#M15224</link>
    <description>Thanks, that worked. &lt;BR /&gt; &lt;BR /&gt;It is strange that GetRvalue, GetGvalue &amp;amp; GetBvalue are all missing from CVF v6.5. &lt;BR /&gt; &lt;BR /&gt;David</description>
    <pubDate>Fri, 22 Dec 2000 22:25:49 GMT</pubDate>
    <dc:creator>davidgraham</dc:creator>
    <dc:date>2000-12-22T22:25:49Z</dc:date>
    <item>
      <title>RGB conversion</title>
      <link>https://community.intel.com/t5/Software-Archive/RGB-conversion/m-p/932968#M15222</link>
      <description>You can use the RGB function to convert the red, green, blue colours to a rgb value. &lt;BR /&gt; &lt;BR /&gt;I want to the the reverse. &lt;BR /&gt;There is an integertorgb function but it is for QuickWin and I want it for Win32 API. &lt;BR /&gt;There are also GetBvalue, GetGvalue &amp;amp; GetBvalue functions, are these the ones that I should use?  If so, I am having trouble getting it to work. &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Fri, 22 Dec 2000 00:01:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/RGB-conversion/m-p/932968#M15222</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-22T00:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: RGB conversion</title>
      <link>https://community.intel.com/t5/Software-Archive/RGB-conversion/m-p/932969#M15223</link>
      <description>RGB value in Win32 is defined as #00BBGGRR. GetRValue, RGB, MAKEINTRESOURCE and some more functions are &lt;BR /&gt;not "real" Win32 API functions; those are actually C macros which &lt;BR /&gt;are, AFAIK, expanded to real functions by Compaq/Digital and placed in dfwin.lib. &lt;BR /&gt; &lt;BR /&gt;GetRValue, GetBValue and GetGValue are supposed to work, though I think (don't know if it's fixed in newer versions) Compaq forgot to include them in dfwin.lib. You can write them yourself (as real or statement functions ): &lt;BR /&gt; &lt;BR /&gt;GetRVAlue(iRGB) = IAND(iRGB, #FF) &lt;BR /&gt; &lt;BR /&gt;GetGValue(iRGB) = ISHL(IAND(iRGB,#FF00), -8) &lt;BR /&gt; &lt;BR /&gt;GetBValue(iRGB) = ISHL(IAND(iRGB,#FF0000), -16) &lt;BR /&gt; &lt;BR /&gt;RGB() macro/function does the inverse thing in Win32 (that one &lt;BR /&gt;&lt;B&gt;is&lt;/B&gt; implemented in dfwin.lib). I prefer to use hex notation  &lt;BR /&gt;when working with colors (i.e. #FF00FF means light pink) instead  &lt;BR /&gt;of RGB macro -- but that's a matter of taste. &lt;BR /&gt; &lt;BR /&gt;Regards &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Fri, 22 Dec 2000 02:19:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/RGB-conversion/m-p/932969#M15223</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2000-12-22T02:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: RGB conversion</title>
      <link>https://community.intel.com/t5/Software-Archive/RGB-conversion/m-p/932970#M15224</link>
      <description>Thanks, that worked. &lt;BR /&gt; &lt;BR /&gt;It is strange that GetRvalue, GetGvalue &amp;amp; GetBvalue are all missing from CVF v6.5. &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Fri, 22 Dec 2000 22:25:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/RGB-conversion/m-p/932970#M15224</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-22T22:25:49Z</dc:date>
    </item>
  </channel>
</rss>

