How to make the labels overlap transparent?

Jan 20, 2010 at 6:12 AM

case MapType.ArcGIS_MapsLT_Map_Hybrid:
               {
                  types.Add(MapType.ArcGIS_MapsLT_OrtoFoto);
                  types.Add(MapType.ArcGIS_MapsLT_Map_Labels);
               }

using this method 'g.DrawImage(img.Img, Core.tileRect.X, Core.tileRect.Y);',the labels overlap are not Transparent. How to make them transparent?

Radioman,can you help me? Thank you very much!

 

 

Jan 20, 2010 at 6:17 AM

Oh, I am using for GMap.NET.WindowsMobile.

Coordinator
Jan 20, 2010 at 12:01 PM

you know, transparency is still issue on windows mobile, any fix-arounds?

Jan 21, 2010 at 8:50 AM

ImageAttributes attr = new ImageAttributes();
attr.SetColorKey(Color.Transparent, Color.Transparent);

g.DrawImage(img.Img, new System.Drawing.Rectangle(Core.tileRect.X, Core.tileRect.Y,
                    Core.tileRect.Width, Core.tileRect.Height), 0, 0,Core.tileRect.Width, Core.tileRect.Height, GraphicsUnit.Pixel, attr);

this would be OK... any idea?

Coordinator
Jan 21, 2010 at 8:53 AM

i don't know, if it's works? would be perfect