Error in source code

May 30, 2011 at 9:48 PM

Hi,

I am trying to use the source code but I have an error and i don't know how to fix it, I am using visual studio 2005

 

 private void GrowingRegionSegmentation(Document doc) 

{

            RegionGrowForm form = new RegionGrowForm();   

        form.Bitmap = doc.GetBitmap();

            if (form.ShowDialog() == DialogResult.OK)       

    {                doc.SetBitmap(ImageOperation.ImageSingleTransform(doc.GetBitmap(),(ref float r, ref float g, ref float b, int x, int y)=> 

                  {                        if (!form.GetMask(x, y))       

                {                            r = form.GetBackgroundColor().R;                       

    g = form.GetBackgroundColor().G;   

                        b = form.GetBackgroundColor().B;   

                    }                    }));             

  app.ImageView.Refresh();            }        }

 

This part "  doc.SetBitmap(ImageOperation.ImageSingleTransform(doc.GetBitmap(),(ref float r, ref float g, ref float b, int x, int y)=> "

is giving me an error that '=>' is invalid expression and also this applies for ref and float ..

what can I do?