<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258197</link>
    <title>MATLAB Central Newsreader - How to set 'white' color to be transparent to its background?</title>
    <description>Feed for thread: How to set 'white' color to be transparent to its background?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 11 Aug 2009 06:47:26 -0400</pubDate>
      <title>How to set 'white' color to be transparent to its background?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258197#672115</link>
      <author>damayi</author>
      <description>Dear all&lt;br&gt;
These days, I use GUIDE to create a toolbar in a GUI application. Each&lt;br&gt;
tool in this toolbar was set to an icon picture. An difficult problem&lt;br&gt;
was encountered, that is: there are many white color space in the&lt;br&gt;
icon, so it looks not very beautiful. I want to set 'white' icon as a&lt;br&gt;
transparent color to the toolbar background , how to get that? Below&lt;br&gt;
is my code, I hope you can help me to resolve this problem.&lt;br&gt;
&lt;br&gt;
[I1, Map] = imread(utt_Icon);  % utt_icon is 'png' format picture&lt;br&gt;
file.&lt;br&gt;
set(hObject, 'CData', ind2rgb(I1, Map));&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Best Regards&lt;br&gt;
mayi&lt;br&gt;
2009-8-11</description>
    </item>
  </channel>
</rss>

