<?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 : Problem Loading 24-bit Images</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : Problem Loading 24-bit Images]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 12:24:30 +0000</pubDate>
  <lastBuildDate>Wed, 13 Dec 2006 16:05:53 +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=5784</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[Problem Loading 24-bit Images : No, I checked this. nBPP is 24...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5784&amp;PID=18184&amp;title=problem-loading-24bit-images#18184</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=695">KFournier</a><br /><strong>Subject:</strong> 5784<br /><strong>Posted:</strong> 13 December 2006 at 4:05pm<br /><br />No, I checked this. nBPP is 24 when I load 24-bit images. In fact, I followed the code to the point where the Image Manager, seeing that the bAlpha is FALSE, simply loads the bitmap into an image list and goes from there. So, maybe the image list doesn't like the bitmap bits, although <DIV>I haven't had any problems using FreeImage in my own libraries.</DIV><DIV>&nbsp;</DIV><DIV>In the interested of moving forward, I've modifed the Task Panel source code to use my own image class. I was just hoping I could find a way to avoid it, since modifying source is a headache when it comes to upgrades.</DIV><DIV>&nbsp;</DIV><DIV>If you can think of anything else for me to look at, please share it. Thanks.</DIV>]]>
   </description>
   <pubDate>Wed, 13 Dec 2006 16:05:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5784&amp;PID=18184&amp;title=problem-loading-24bit-images#18184</guid>
  </item> 
  <item>
   <title><![CDATA[Problem Loading 24-bit Images : Hi, Just think nBPPis 32... Think...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5784&amp;PID=18179&amp;title=problem-loading-24bit-images#18179</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5784<br /><strong>Posted:</strong> 13 December 2006 at 3:36pm<br /><br />Hi,<DIV>Just think nBPP&nbsp;is 32...&nbsp; Think FreeImage automatically convert them to 32 bit. Check nBPP&nbsp; value.</DIV>]]>
   </description>
   <pubDate>Wed, 13 Dec 2006 15:36:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5784&amp;PID=18179&amp;title=problem-loading-24bit-images#18179</guid>
  </item> 
  <item>
   <title><![CDATA[Problem Loading 24-bit Images :    I am trying to load the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5784&amp;PID=18166&amp;title=problem-loading-24bit-images#18166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=695">KFournier</a><br /><strong>Subject:</strong> 5784<br /><strong>Posted:</strong> 13 December 2006 at 1:35pm<br /><br /><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>I am trying to load the Task Panel control with custom loaded images using the FreeImage library. So far, it works fine if the images are 32-bit, but 24-bit images just show up completely black.<DIV><BR><DIV></DIV><DIV></DIV><img src="http://isupport.srpcs.com/Kevin/taskpanel.png" border="0"></DIV><DIV>&nbsp;</DIV><DIV>The group icon is a 32-bit .bmp and the black squares are loaded from a 24-bit bmp. It doesn't matter what 24-bit bmp I load, it's black. I've stepped through the image manager code and it never errors out. Here is my logic for setting the custom loaded images:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;if( pImageManager &amp;&amp; m_pImage )<BR>&nbsp;{<BR>&nbsp;&nbsp;if( FreeImage_FlipVertical(m_pImage) )<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;// get image attributes<BR>&nbsp;&nbsp;&nbsp;int nWidth = FreeImage_GetWidth(m_pImage);<BR>&nbsp;&nbsp;&nbsp;int nHeight = FreeImage_GetHeight(m_pImage);<BR>&nbsp;&nbsp;&nbsp;UINT nBPP = FreeImage_GetBPP(m_pImage);</DIV><DIV>&nbsp;&nbsp;&nbsp;// convert to CBitmap<BR>&nbsp;&nbsp;&nbsp;CBitmap bmp;<BR>&nbsp;&nbsp;&nbsp;bmp.CreateBitmap( nWidth, nHeight, 1, nBPP, FreeImage_GetBits(m_pImage) );</DIV><DIV>&nbsp;&nbsp;&nbsp;// load image manager<BR>&nbsp;&nbsp;&nbsp;if( m_bHasColorKey )<BR>&nbsp;&nbsp;&nbsp;&nbsp;pImageManager-&gt;SetMaskColor( m_clrKey );<BR>&nbsp;&nbsp;&nbsp;pImageManager-&gt;SetIcons( bmp, 0, GetFrameCount(), GetSize(), xtpImageNormal, nBPP == 32 );</DIV><DIV>&nbsp;&nbsp;&nbsp;// restore the image<BR>&nbsp;&nbsp;&nbsp;FreeImage_FlipVertical( m_pImage );<BR>&nbsp;&nbsp;}<BR>&nbsp;}</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Any ideas on where to start looking? Thanks.</DIV>]]>
   </description>
   <pubDate>Wed, 13 Dec 2006 13:35:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5784&amp;PID=18166&amp;title=problem-loading-24bit-images#18166</guid>
  </item> 
 </channel>
</rss>