Some Question about the DrawPolygon() function

Sep 29, 2011 at 2:49 AM

Hello, everyone:

    I want to drawing some Polygons based on dlScreenReferencedList, and I hope I can do some operations with them, I hope I can select them, label them, can anyone who can help me?

    because I want my Polygons' area and size not scales with the zoom ,so I choosed the dlScreenReferencedList style, But how can I select them and label them?

   My code is like this:(C#)

   Because

       long hd1 = axMap1.NewDrawing(MapWinGIS.tkDrawReferenceList.dlScreenReferencedList);

            double[] xpt = new double[14];
            double[] ypt = new double[14];

            xpt[0] = 300.0;
            ypt[0] = 200.0;
            xpt[13] = 300.0;
            ypt[13] = 200.0;

            for (pidx = 1; pidx <= 12; pidx++ )
            {
                rad = ( pidx * 5 + 30) * Math.PI / 180;
                xpt[pidx] = xpt[0] + 50 * Math.Cos(rad);
                ypt[pidx] = ypt[0] - 50 * Math.Sin(rad);
            }

            Object xPts, yPts;
            xPts = xpt;
            yPts = ypt;


            axMap1.DrawPolygon(ref xPts, ref yPts, 14, (uint)ColorTranslator.ToOle(Color.Green), true);