OpenTK.GLControl.GrabScreenshot C# (CSharp) Method

GrabScreenshot() private method

private GrabScreenshot ( ) : Bitmap
return System.Drawing.Bitmap
        public Bitmap GrabScreenshot()
        {
            ValidateState();
            throw new NotSupportedException();
            //Bitmap bmp = new Bitmap(this.ClientSize.Width, this.ClientSize.Height);
            //System.Drawing.Imaging.BitmapData data =
            //    bmp.LockBits(this.ClientRectangle, System.Drawing.Imaging.ImageLockMode.WriteOnly,
            //                 System.Drawing.Imaging.PixelFormat.Format24bppRgb);
            //GL.ReadPixels(0, 0, this.ClientSize.Width, this.ClientSize.Height, PixelFormat.Bgr, PixelType.UnsignedByte,
            //              data.Scan0);
            //bmp.UnlockBits(data);
            //bmp.RotateFlip(RotateFlipType.RotateNoneFlipY);
            //return bmp;
        }