<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How to use CXTPOffice2007Image::GetBitmapPixel</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to use CXTPOffice2007Image::GetBitmapPixel]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 14:07:11 +0000</pubDate>
  <lastBuildDate>Thu, 11 Feb 2010 16:40:46 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=16176</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How to use CXTPOffice2007Image::GetBitmapPixel : I want to draw a background gradient...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16176&amp;PID=56747&amp;title=how-to-use-cxtpoffice2007imagegetbitmappixel#56747</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 16176<br /><strong>Posted:</strong> 11 February 2010 at 4:40pm<br /><br />I want to draw a background gradient that matches the colors&nbsp;of a ribbon bar group. But I don't know how to call GetBitmapPixel. I am trying to call GetBitmapPixel with the correct "point" coordinates. I can draw the image calling like this:<DIV>&nbsp;</DIV><DIV>pImage-&gt;DrawImage(pDC, rcClient, pImage-&gt;GetSource(0,2), CRect(0,0,0,0));</DIV><DIV>&nbsp;</DIV><DIV>and I see what appears to be the image I see when the ribbon draws a non-highlighted group (background). I cannot seem to find the correct offset point to pass GetBitmapPixel.</DIV><DIV>&nbsp;</DIV><DIV>It also appears that the pixel returned is not in RGB format but rather is in BGR (I can only come close to the colors I see when I draw the image if I swap the red and green when calling the GDI GradientFill API.)</DIV><DIV>&nbsp;</DIV><DIV>Can I call GetBitmapPixel to get the values I need? If not, how can I get the colors of the two "inner bands" that I see a group image contains.</DIV>]]>
   </description>
   <pubDate>Thu, 11 Feb 2010 16:40:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16176&amp;PID=56747&amp;title=how-to-use-cxtpoffice2007imagegetbitmappixel#56747</guid>
  </item> 
 </channel>
</rss>