Bitmap canvas = new Bitmap(pictureWater.Width, pictureWater.Height); BitmapData data = canvas.LockBits(new Rectangle(0, 0, width, height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb); byte* pixel = (byte*)data.Scan0.ToPointer(); pixel[0] = (byte)0;//blue pixel[1] = (byte)color;//green pixel[2] = (byte)0;//red pixel[3] = (byte)255;
byte* pixel = (byte*)data.Scan0.ToPointer();
byte* pixel = (byte*)data.Scan0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)