Problems with loading a BitmapPalette from image file
<p>I want to load a palette from a bitmap file I have created. The file is 256 px wide and 1 px high.</p>

<p>I use</p>

<pre><code>BitmapImage image = new BitmapImage();
image.BeginInit();           
image.UriSource = new Uri("image.bmp", UriKind.RelativeOrAbsolute);
image.EndInit();

myPalette = new BitmapPalette(image, 256);
</code></pre>

<p>The strange thing is, that the <code>Count</code> property of <code>myPalette.Colors</code> is only 244!</p>

<p>Is there something wrong with my code?</p>
