CSharp examples for System.Drawing:Image Operation
Get Bitmap Data from Bitmap
using System.Drawing.Imaging; using System.Drawing; using System.Collections; using System;/*w w w . jav a 2s . c o m*/ public class Main{ public static BitmapData GetBitmapData(Bitmap bmp) { System.Drawing.Imaging.BitmapData bmpData = bmp.LockBits( new Rectangle(0,0,bmp.Width,bmp.Height), System.Drawing.Imaging.ImageLockMode.ReadWrite, bmp.PixelFormat); return bmpData; } }