How to make the labels overlap transparent?

Jan 20, 2010 at 7:12 AM

case MapType.ArcGIS_MapsLT_Map_Hybrid:

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 7:17 AM

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

Jan 20, 2010 at 1:01 PM

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

Jan 21, 2010 at 9: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?

Jan 21, 2010 at 9:53 AM

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