Hi all!I have a custom application built in ArcGIS Mobile 10. I am trying to build a legend for the map. On my emulator and on some devices, the swatches look good, but on a type of device (running windows mobile 6.5), the swatches appear to be black & white. On the map, the symbols are drawn as they should, but in the legend they appear as you can see in the attachment "bad_swatches.jpg". Both the emulator and the "problem" device have the same screen size (480x640 16bps) and the same operating system (Windows Mobile 6.5). Here is a piece of C# code use to draw the swatches:Size size = layer.Renderer.GetRecommendedSwatchSize();
if (size.Height < 25)
size = new Size(25, 25);
IList<LegendSwatch> legendList = layer.Renderer.GetLegendSwatches(panelLegenda.BackColor, size.Width, size.Height);
if (legendList != null)
{
//...............
foreach (LegendSwatch legendSwatch in legendList)
{
//** Draw each swatch used in current layer along with its name
PictureBox picture = new PictureBox();
picture.Size = size;
picture.Image = legendSwatch.Image;
picture.Location = new Point(45, vPositioning);
panelLegenda.Controls.Add(picture);
//...............
}
}
I tried changing the BackColor of the swatches. I tried using AntiAliasing (4th parameter in GetLegendSwatches). I tried changing the swatch size. I tried changing the theme of the Windows Moobile device. None of these solved my problem.I don't know what to change anymore in order to solve this problem.