<?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[TImageList: image aus resourcen datei laden. Problem = Transparentfarbe bleibt clFucsia!]]></title><description><![CDATA[<p>hi,</p>
<p>Das TImageList ist mit einem pagecontrol &gt; tabs im object inspector verlinkt.<br />
Ich habe ein bmp mit clFucsia als &quot;Rundumfarbe&quot;.<br />
Wenn ich nun dieses bmp per object inspector lade habe ich die Möglichkeit die TRansparentfarbe auszuwählen, was auch funktioniert.<br />
Ich möchte jedoch im code aus einer resourcen datei das bmp laden.<br />
Bei folgendem code bleibt jedoch die Rundumfarbe(clFucsia) und wird NICHT transparent.</p>
<pre><code>void __fastcall TDataModuleFormMain::DataModuleCreate(TObject *Sender)
{
	Graphics::TBitmap *bitmap = new Graphics::TBitmap();
	bitmap-&gt;LoadFromResourceID(reinterpret_cast&lt;int&gt;(HInstance), ID_TAB_IRRIGATION);
  	bitmap-&gt;TransparentColor = clFuchsia;   //

	ImageListTab32-&gt;Add(bitmap, NULL);      /*         */
}
</code></pre>
<p>Hat jemand einen Ratschlag?</p>
<p>TIA mfg terny</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/175847/timagelist-image-aus-resourcen-datei-laden-problem-transparentfarbe-bleibt-clfucsia</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 01:03:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/175847.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Mar 2007 16:05:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TImageList: image aus resourcen datei laden. Problem = Transparentfarbe bleibt clFucsia! on Wed, 14 Mar 2007 16:05:32 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>Das TImageList ist mit einem pagecontrol &gt; tabs im object inspector verlinkt.<br />
Ich habe ein bmp mit clFucsia als &quot;Rundumfarbe&quot;.<br />
Wenn ich nun dieses bmp per object inspector lade habe ich die Möglichkeit die TRansparentfarbe auszuwählen, was auch funktioniert.<br />
Ich möchte jedoch im code aus einer resourcen datei das bmp laden.<br />
Bei folgendem code bleibt jedoch die Rundumfarbe(clFucsia) und wird NICHT transparent.</p>
<pre><code>void __fastcall TDataModuleFormMain::DataModuleCreate(TObject *Sender)
{
	Graphics::TBitmap *bitmap = new Graphics::TBitmap();
	bitmap-&gt;LoadFromResourceID(reinterpret_cast&lt;int&gt;(HInstance), ID_TAB_IRRIGATION);
  	bitmap-&gt;TransparentColor = clFuchsia;   //

	ImageListTab32-&gt;Add(bitmap, NULL);      /*         */
}
</code></pre>
<p>Hat jemand einen Ratschlag?</p>
<p>TIA mfg terny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1245583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1245583</guid><dc:creator><![CDATA[terny]]></dc:creator><pubDate>Wed, 14 Mar 2007 16:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to TImageList: image aus resourcen datei laden. Problem = Transparentfarbe bleibt clFucsia! on Wed, 14 Mar 2007 16:15:50 GMT]]></title><description><![CDATA[<p>arghh...</p>
<p>habs grab gefunden, sorry ......</p>
<pre><code>void __fastcall TDataModuleFormMain::DataModuleCreate(TObject *Sender)
{
	Graphics::TBitmap *bitmap = new Graphics::TBitmap();
	bitmap-&gt;LoadFromResourceID(reinterpret_cast&lt;int&gt;(HInstance), ID_TAB_IRRIGATION);
	ImageListTab32-&gt;AddMasked(bitmap, clFuchsia) ;   /*         */
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1245598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1245598</guid><dc:creator><![CDATA[terny]]></dc:creator><pubDate>Wed, 14 Mar 2007 16:15:50 GMT</pubDate></item></channel></rss>