本帖最后由 tank_2009 于 2009-09-03 14:20:58 编辑

解决方案 »

  1.   

    这个用GDI+好做...没必要使用API了把 
      

  2.   


    谢谢,GDI+也行,只要实现这效果就好。用什么方法呢?
      

  3.   

    那不是羽化...
    只是以点击点为中心的alpha过渡填充.
      

  4.   

      Bitmap _Bitmap = new Bitmap(@"C:\1.bmp");            Graphics _Graphcis = Graphics.FromImage(_Bitmap);           
                Point _Left1 = new Point(0, 0);
                Point _Left2 = new Point(_Bitmap.Width, 0);
                Point _Left3 = new Point(_Bitmap.Width , _Bitmap.Height/2);
                Point _Left4 = new Point(0, _Bitmap.Height/2);            Point[] _Point = new Point[] { _Left1, _Left2, _Left3, _Left4 };
                PathGradientBrush _SetBruhs = new PathGradientBrush(_Point, WrapMode.TileFlipY);
                _SetBruhs.CenterPoint = new PointF(0, 0);
                _SetBruhs.FocusScales = new PointF(_Bitmap.Width/2, 0);
                _SetBruhs.CenterColor = Color.FromArgb(250, 255, 255, 255);
                _SetBruhs.SurroundColors=new Color[]{Color.FromArgb(100,255,255,255)};            _Graphcis.FillRectangle(_SetBruhs, new Rectangle(0, 0, _Bitmap.Width, _Bitmap.Height));            pictureBox1.Image=_Bitmap;