<?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 : CommandBars.Icons.LoadBitmap / Mask</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBars.Icons.LoadBitmap / Mask]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 22:03:22 +0000</pubDate>
  <lastBuildDate>Wed, 30 Dec 2009 06:48:14 +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=8604</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[CommandBars.Icons.LoadBitmap / Mask : Different sizes should be a problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55914&amp;title=commandbars-icons-loadbitmap-mask#55914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 30 December 2009 at 6:48am<br /><br />Different sizes should be a problem with the seticonsize method. But that too is a great work around. Thanks]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 06:48:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55914&amp;title=commandbars-icons-loadbitmap-mask#55914</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Hi Donald!  I sometimes use png...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55913&amp;title=commandbars-icons-loadbitmap-mask#55913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 30 December 2009 at 4:30am<br /><br />Hi Donald!<br /><br />I sometimes use png files for icons too, when the icon has only one image size.<br /><br />But in this case I am using the ImageManager as a intermediate control to show larger images on markup controls. And the user can select any image from its computer.<br /><br />And in this case the masking is not desired.<br /><br />Thanks!]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 04:30:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55913&amp;title=commandbars-icons-loadbitmap-mask#55913</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Hello Krog and indice.Typically,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55911&amp;title=commandbars-icons-loadbitmap-mask#55911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 30 December 2009 at 3:06am<br /><br />Hello Krog and indice.<br><br>Typically, I prefer to use .png files as icons rather than the usual bitmap because they support higher color bit and built in transparancies.<br>If you would like to see an example code let me know. ;&#093;<br><br>]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 03:06:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55911&amp;title=commandbars-icons-loadbitmap-mask#55911</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Hi Oleg!  I tested it and it is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55906&amp;title=commandbars-icons-loadbitmap-mask#55906</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 29 December 2009 at 9:57pm<br /><br />Hi Oleg!<br /><br />I tested it and it is the same as if the value does not have the 0xff000000 part.<br /><br />eg. 0x1000000 gives me equal results as 0x00 <img src="http://forum.codejock.com/smileys/smiley6.gif" border="0" align="middle"><br /><br />Also with pictures that does have less than 24 bits per pixel (not RGB), as some GIFs, the mask applies to black (0x00) color.<br /><br />My code is like this:<br /><table width="99%"><tr><td><pre class="BBcode"><br />  ImageManager1.Icons.MaskColor = GetRGBColor(UserControl.BackColor)  '&H1000000 '&H1000001 'False '0<br />  ImageManager1.Icons.AddBitmap Img.Handle, 100 + Index, xtpImageNormal, False<br />  Set imImage = ImageManager1.Icons.GetImage(100 + Index, 0)</pre></td></tr></table><br />Happy Holidays!<br />]]>
   </description>
   <pubDate>Tue, 29 Dec 2009 21:57:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55906&amp;title=commandbars-icons-loadbitmap-mask#55906</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Hi,  Just set it to some value...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55598&amp;title=commandbars-icons-loadbitmap-mask#55598</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 14 December 2009 at 6:20am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Just set it to some value &gt; 0xFFFFFF</DIV>]]>
   </description>
   <pubDate>Mon, 14 Dec 2009 06:20:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55598&amp;title=commandbars-icons-loadbitmap-mask#55598</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : How can I load my bitmaps without...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55564&amp;title=commandbars-icons-loadbitmap-mask#55564</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 12 December 2009 at 12:20am<br /><br />How can I load my bitmaps without using any MaskColor at all? I don't want to loose any color on the bitmap.<br /><br />I did not find a property like UseMaskColor on the ImageManager.Icons.<br /><br />Thanks in advance.<br />]]>
   </description>
   <pubDate>Sat, 12 Dec 2009 00:20:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=55564&amp;title=commandbars-icons-loadbitmap-mask#55564</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Hello,  Set MaskColor to some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27912&amp;title=commandbars-icons-loadbitmap-mask#27912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 31 October 2007 at 2:14am<br /><br /><DIV>Hello,</DIV><DIV>&nbsp;</DIV><DIV>Set MaskColor to some value before you load them.</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.Icons.MaskColor = vbRed</DIV>]]>
   </description>
   <pubDate>Wed, 31 Oct 2007 02:14:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27912&amp;title=commandbars-icons-loadbitmap-mask#27912</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Hi,  Is there any way I can force...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27902&amp;title=commandbars-icons-loadbitmap-mask#27902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3323">indices</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 30 October 2007 at 3:53pm<br /><br />Hi, <DIV>Is there any way I can force it not to apply the mask? </DIV><DIV>These bmps are non-transparent and being loaded into a gallery. </DIV>]]>
   </description>
   <pubDate>Tue, 30 Oct 2007 15:53:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27902&amp;title=commandbars-icons-loadbitmap-mask#27902</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Hi,  Topleft pixel in bitmap...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27896&amp;title=commandbars-icons-loadbitmap-mask#27896</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 30 October 2007 at 1:34pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Topleft pixel in bitmap used for transparent color</DIV>]]>
   </description>
   <pubDate>Tue, 30 Oct 2007 13:34:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27896&amp;title=commandbars-icons-loadbitmap-mask#27896</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.Icons.LoadBitmap / Mask : Does the CommandBars.Icons.LoadBitmap...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27893&amp;title=commandbars-icons-loadbitmap-mask#27893</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3323">indices</a><br /><strong>Subject:</strong> 8604<br /><strong>Posted:</strong> 30 October 2007 at 1:14pm<br /><br />Does the CommandBars.Icons.LoadBitmap&nbsp; method apply a mask on the loadded bitmap?<DIV>&nbsp;</DIV><DIV>I am loading several BMP files with background color however when I use the code below to draw the icon, the background is missing.</DIV><DIV>&nbsp;</DIV><DIV>Set Icon = CommandBars.Icons.GetImage(Item.ID, 32)</DIV><DIV>Icon.Draw HDC, X + 5, Y + 5, 32, 32, xtpImageNormal </DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV>]]>
   </description>
   <pubDate>Tue, 30 Oct 2007 13:14:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8604&amp;PID=27893&amp;title=commandbars-icons-loadbitmap-mask#27893</guid>
  </item> 
 </channel>
</rss>