예제 #1
0
 public BitmapFeature(BitmapFeature feature)
 {
     this.x = feature.x;
     this.y = feature.y;
     this.anchorx = feature.anchorx;
     this.anchory = feature.anchory;
     this.m_oBitmap = feature.m_oBitmap;
 }
예제 #2
0
        public static Feature CreateBitmap(double x, double y, string name)
        {
            if (name == "baloon")
            {
                string sResName = "hiMapNet.Resources.marker_greenA.png";

                Stream stream = System.Reflection.Assembly.
                    GetExecutingAssembly().GetManifestResourceStream(sResName);
                Bitmap bmp = new Bitmap(stream);
                stream.Close();

                int anchorX = 8;
                int anchorY = 33;
            //                BitmapFeature bf = new BitmapFeature(x, y, anchorX, anchorY,
            //                    @"d:\rav\Private\rv125_GPS_Software\Prog_MapNet\Prog_MapNet\res_google\marker_greenA.png");
                BitmapFeature bf = new BitmapFeature (x, y, anchorX, anchorY, bmp);

                return bf;
            }
            return null;
        }